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\nconst DEFAULT_QUERY = `# Winamp Skins GraphQL API\n#\n# https://skins.webamp.org\n#\n# This is a GraphQL API for the Winamp Skin Museum's database.\n# It's mostly intended for exploring the data set. Please feel\n# free to have a look a... | typescript | edit | 0 | 0 | mit | 551e94fcbd39a9155e39fb6f1cef898456dd6ba7 | captbaritone/winamp2-js,captbaritone/winamp2-js,captbaritone/winamp2-js | packages/skin-database/api/graphql/defaultQuery.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 | 1 | apache-2.0 | b73e6853f471974c5c009e874adb2fa24738394e | google/ground-platform,google/ground-platform,google/ground-platform,google/ground-platform | web-ng/src/app/shared/models/project.model.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n'use strict';\n// The module 'vscode' contains the VS Code extensibility API\n// Import the module and reference it with the alias vscode in your code below\nimport { languages, ExtensionContext } from 'vscode';\nimport { CssCompletionI... | typescript | edit | 0 | 2 | mit | 9706d48b326b8365643fa32fbfb1c98c81b19166 | andersea/HTMLClassSuggestionsVSCode | src/extension.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react'\n\n/**\n * A terrible, horrible, no good, very bad component for presenting modal\n * popups.\n */\nexport default class Popuppy extends React.Component<any, any> {\n public render() {\n const style: R... | typescript | edit | null | null | mit | 5b4b02c25e2f9e4f4ce8c3bcc9dbd2ff32cceb0c | say25/desktop,shiftkey/desktop,say25/desktop,hjobrien/desktop,j-f1/forked-desktop,shiftkey/desktop,artivilla/desktop,shiftkey/desktop,BugTesterTest/desktops,j-f1/forked-desktop,say25/desktop,desktop/desktop,hjobrien/desktop,kactus-io/kactus,j-f1/forked-desktop,gengjiawen/desktop,hjobrien/desktop,j-f1/forked-desktop,Bug... | app/src/ui/popuppy.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react'\n\nimport { Repository } from '../../models/repository'\nimport { Dispatcher } from '../../lib/dispatcher'\nimport { WorkingDirectoryFileChange } from '../../models/status'\nimport { Form } from '../lib/fo... | typescript | edit | null | null | mit | ef22e10e7a705b1595b838b6171be6b105f9a135 | j-f1/forked-desktop,artivilla/desktop,j-f1/forked-desktop,hjobrien/desktop,hjobrien/desktop,shiftkey/desktop,artivilla/desktop,say25/desktop,shiftkey/desktop,BugTesterTest/desktops,j-f1/forked-desktop,shiftkey/desktop,say25/desktop,desktop/desktop,BugTesterTest/desktops,gengjiawen/desktop,BugTesterTest/desktops,hjobrie... | app/src/ui/discard-changes/index.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path='fourslash.ts' />\r\n\r\n//@Filename: file.tsx\r\n//// declare module JSX {\r\n//// interface Element { }\r\n//// interface IntrinsicElements {\r\n//// }\r\n//// interface ElementAttributesProperty { ... | typescript | edit | 0 | 0 | apache-2.0 | c78149215b57c65ab1493cdd2e079d9d0b8d67c1 | AbubakerB/TypeScript,jwbay/TypeScript,thr0w/Thr0wScript,vilic/TypeScript,Microsoft/TypeScript,plantain-00/TypeScript,alexeagle/TypeScript,nojvek/TypeScript,microsoft/TypeScript,ziacik/TypeScript,Eyas/TypeScript,ionux/TypeScript,jeremyepling/TypeScript,thr0w/Thr0wScript,basarat/TypeScript,AbubakerB/TypeScript,erikmcc/Ty... | tests/cases/fourslash/jsxSpreadReference.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Observable} from 'rx';\n\nexport interface DOMSelection {\n observable: Observable<any>;\n events: (eventType: string) => Observable<any>;\n}\n\nexport class MockedDOMSelection {\n public observable: Observable<any>;\n\n con... | typescript | edit | 0 | 3 | mit | e8a69fdc60b394b377c18f3c8aedcbd746a1b6e4 | cyclejs/cyclejs,staltz/cycle,staltz/cycle,maskinoshita/cyclejs,cyclejs/cyclejs,ntilwalli/cyclejs,maskinoshita/cyclejs,maskinoshita/cyclejs,usm4n/cyclejs,maskinoshita/cyclejs,usm4n/cyclejs,feliciousx-open-source/cyclejs,cyclejs/cyclejs,ntilwalli/cyclejs,ntilwalli/cyclejs,feliciousx-open-source/cyclejs,feliciousx-open-so... | dom/src/mockDOMSource.ts | rejected_duplicate | Near-duplicate of sample 113503 | 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 | 40a3c1fcd50dd37e97dea316dbc68702858f40b4 | mjbvz/vscode,DustinCampbell/vscode,microsoft/vscode,Krzysztof-Cieslak/vscode,landonepps/vscode,landonepps/vscode,Krzysztof-Cieslak/vscode,rishii7/vscode,microlv/vscode,stringham/vscode,mjbvz/vscode,the-ress/vscode,mjbvz/vscode,0xmohit/vscode,microsoft/vscode,eamodio/vscode,0xmohit/vscode,eamodio/vscode,microlv/vscode,K... | src/vs/base/common/numbers.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport class User {\n id: number;\n first_name: string;\n last_name: string;\n email: string;\n email_verified: boolean;\n district: string;\n nic: string;\n phone: string;\n phone_no_verified: boolean;\n t... | typescript | edit | 0 | 0 | mit | b8d6beb9ceb2a9e1bad0d08dd8715a4d57ad0379 | shavindraSN/examen,shavindraSN/examen,shavindraSN/examen | client/sharedClasses/user.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nmodule starter.ticket {\n 'use strict';\n\n export class TicketServices implements ITicketService {\n\n static $inject = ['starter.shared.QueryRemoteDataService'];\n constructor(private queryRemoteSvc: starter.share... | typescript | edit | 0 | 1 | mit | 52a2c41c3f2efbedd99f384d419db7f2de01d199 | tlaothong/xdailysoccer,tlaothong/xdailysoccer,tlaothong/xdailysoccer,tlaothong/xdailysoccer | src/DailySoccerSolution/DailySoccerMobile/Scripts/tickets/starter.ticket.services.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, Input, TemplateRef } from '@angular/core';\nimport { PioneerTreeComponent } from '../pioneer-tree/pioneer-tree.component'\nimport { IPioneerTreeExpandedNode } from \"../../models/pioneer-tree-expanded-node.model\"\n\... | typescript | edit | 0 | 1 | mit | 31f5757421fba3e93d01fe101bb11a15ba355f91 | PioneerCode/pioneer-tree,PioneerCode/pioneer-tree,PioneerCode/pioneer-tree | src/site/app/lib/components/pioneer-tree-node/pioneer-tree-node.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport default class HelperObject {\n public static clone<T extends any>(obj: T): T {\n if (obj === undefined || typeof (obj) !== \"object\") {\n return obj; // any non-objects are passed by value, not reference\n ... | typescript | edit | 0 | 5 | mit | 7365c96f0479658d9c66d0877df9622f1838dc28 | crossroads-education/eta,crossroads-education/eta | helpers/object.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Component, ElementRef, Inject} from '@angular/core';\nimport {PageScrollService, PageScrollInstance} from 'ng2-page-scroll';\nimport {DOCUMENT} from \"@angular/platform-browser\";\nimport {Router, NavigationEnd} from \"@angular/... | typescript | edit | 0 | 2 | mit | 95eda9688d8b8600311db1f2439710d710973657 | Nolanus/ng2-page-scroll,Nolanus/ng2-page-scroll,Nolanus/ng2-page-scroll | demo/src/app/app.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path=\"../typings/node/node.d.ts\"/>\n/// <reference path=\"../typings/express/express.d.ts\"/>\n\nvar express = require('express');\nvar app = express();\nvar router = express.Router();\nvar bodyParser = require('body-pa... | typescript | edit | 0 | 2 | mit | 54499c121604ce0fbf39f72a6ff3c5a688e5ae28 | 2DKot/AI_Contester,2DKot/AI_Contester,2DKot/AI_Contester,2DKot/AI_Contester | web-server/src/main.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nclass Queue {\n\n private _running = false;\n\n private _queue: Function[] = [];\n\n public push(f: Function) {\n this._queue.push(f);\n\n if (!this._running) {\n // if nothing is running, then start the engines!\n th... | typescript | edit | 0 | 2 | apache-2.0 | 904f6728ea44e62fe04c1871a98cb3b8ac9ad7fa | KamiKillertO/vscode-colorize,KamiKillertO/vscode-colorize | src/queue.ts | rejected_duplicate | Near-duplicate of sample 114337 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * @license\n * Copyright Google Inc. 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\n// tslint:disable:no-glo... | typescript | edit | 0 | 2 | mit | ebc92c2125041b0020992b3a00ef76a69536d4f1 | filipesilva/angular-cli,ocombe/angular-cli,filipesilva/angular-cli,ocombe/angular-cli,hansl/angular-cli,catull/angular-cli,catull/angular-cli,angular/angular-cli,angular/angular-cli,catull/angular-cli,DevIntent/angular-cli,ocombe/angular-cli,manekinekko/angular-cli,DevIntent/angular-cli,DevIntent/angular-cli,beeman/ang... | packages/angular/cli/commands/new-impl.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\n\nimport {\n Loader,\n CenteredBox\n} from 'View/Ui/Index';\n\ninterface IAppLoadingProps\n{\n show: boolean;\n};\n\nconst AppLoading: React.SFC<IAppLoadingProps> = ({ show }) =>\n(\n <div className=... | typescript | edit | null | null | mit | 6fd8aedc4e16f0503303df5c0e8ca85a49c9ace2 | harksys/HawkEye,harksys/HawkEye,harksys/HawkEye | src/js/View/Ui/AppLoading.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Component, OnInit, OnDestroy} from '@angular/core';\nimport {ActivatedRoute} from '@angular/router';\nimport {Subscription} from 'rxjs';\n\nimport {ProductsService} from './products.service';\n\n@Component({\n template: `\n ... | typescript | edit | 0 | 1 | mit | a465e6423c198f3bf84996e6f76a3b01ca18c454 | jsperts/workshop_unterlagen,jsperts/workshop_unterlagen,jsperts/workshop_unterlagen | angular/examples/Code/Router/Nested_Routes/src/app/products/product.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {\n Webdriver,\n ElementNotFoundError,\n ElementNotVisibleError,\n} from 'mugshot';\nimport { Page } from 'puppeteer';\n\n/**\n * Webdriver adapter over [Puppeteer](https://github.com/puppeteer/puppeteer)\n * to be used with [... | typescript | edit | 0 | 3 | mit | 55f3cf131146034154a964da8ad561e87e1519b0 | uberVU/mugshot,uberVU/mugshot | packages/puppeteer/src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/*\n* Interface representing a budget item. It has the sum — some amount spent \n* or gained, and a description that explains the purpose or source of money\n*/\nexport interface BudgetItem {\n sum: number;\n description: string; ... | typescript | edit | 0 | 1 | mit | 8fea7f2a5cc43b93d59e06ec2aba5b8ce1c226ae | bluebirrrrd/ng2-budget,bluebirrrrd/ng2-budget,bluebirrrrd/ng2-budget | src/app/budget/budget-item.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { middleware, Middleware as GenericMiddleware } from './utils/middleware'\n\nexport { help } from './middlewares/helper'\n\nexport type CommandFunction = (options: ICLIOptions, ...args: any[]) => any\nexport type CLIParams = stri... | typescript | edit | 0 | 1 | mit | f3993f4f8a109e3c6f45bf1257fd8062ae236945 | pawelgalazka/microcli,pawelgalazka/microcli | src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n'use strict';\n\nimport assert = require('assert');\nimport GitLabStateHelper from '../../src/lib/states';\n\nconst projectId = process.env.GITLAB_TEST_PROJECT;\n\ndescribe('States', function () {\n describe('constructor()', function... | typescript | edit | 0 | 2 | mit | 5d9fb91f1f575a70727f1f4623254ff79ea768b7 | sebbo2002/gitlab-badges,sebbo2002/gitlab-badges | test/lib/states.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as emitter from \"../../emitter\";\nimport { IFile } from \"../../io/file\";\nimport * as autoprefixer from \"autoprefixer\";\nimport * as path from \"path\";\nimport * as postcss from \"postcss\";\n\ninterface ICustomPostCssOp... | typescript | edit | 0 | 5 | mit | 662939b38abf0d0ad905c6efe84064402297a479 | marvinhagemeister/kiki,marvinhagemeister/kiki | src/plugins/postcss/compile.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as Transliteration from \"transliteration\";\n\n/**\n * Provides the functionality to generate slugs.\n */\nexport class Slugifier\n{\n /**\n * The already generated slugs.\n */\n private slugs: string[] = [];\n\n... | typescript | edit | 0 | 2 | mit | 6e79159d85663381b5390ebceda9e24c75e1b8c0 | manuth/MarkdownConverter,manuth/MarkdownConverter,manuth/MarkdownConverter | src/System/Drawing/Slugifier.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Fix case sensitivity of 'node' import"
},
{
"role": "assistant",
"content": "export { Analysis } from './analysis';\nexport { ScopedNode } from './node';\nexport { Scope } from './scope';\n"
}
] | typescript | new_file | 0 | 0 | mit | 9d882dd84f49d5aa8d653bd2392d7067664c717c | trixnz/vscode-lua,trixnz/vscode-lua | server/src/analysis/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport 'babel-polyfill'; //This will be replaced based on your babel-env config\n\nimport { run } from '@cycle/run';\nimport { makeDOMDriver } from '@cycle/dom';\nimport { timeDriver } from '@cycle/time';\nimport onionify from 'cycle-on... | typescript | edit | 0 | 0 | mit | db11b0b9e55d7a4cea578428c0f243175ec5cdcf | olpeh/meeting-price-calculator,olpeh/meeting-price-calculator,olpeh/meeting-price-calculator,olpeh/meeting-price-calculator | src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { EnvConfig } from './env-config.interface';\n\nconst BaseConfig: EnvConfig = {\n // Sample API url\n API: 'https://demo.com',\n RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.11.0',\n RELEASEVERSION: '... | typescript | edit | 0 | 0 | mit | bec2f7b794e722bbaf66735adc94d9b15ada8ba2 | nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website | tools/env/base.ts | rejected_duplicate | Near-duplicate of sample 112906 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Orbit from '@orbit/core';\n\nexport function jsonapiResponse(_options: any, body?: any, timeout?: number): Promise<Response> {\n let options: any;\n let response: Response;\n\n if (typeof _options === 'number') {\n options ... | typescript | edit | 0 | 7 | mit | e4a10e51b3614cc45e30ea9fcd33797390624e11 | orbitjs/orbit.js,orbitjs/orbit.js,orbitjs/orbit-core | packages/@orbit/integration-tests/test/support/jsonapi.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {IEventDispatcher} from \"../eventlistenerhelper/IEventDispatcher\";\nimport {IEventListenerCallback} from \"../eventlistenerhelper/IEventListenerCallback\";\n\n// Type definition for the eventemitter3\ndeclare type EventEmitter... | typescript | edit | 0 | 1 | mit | b23fa8418b29bf461fd51f3b925fe872e3e682ba | flashist/fcore,flashist/fcore,flashist/fcore | src/event/eventdispatcher/BaseEventDispatcher.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Query from '../query/Query'\nimport { NormalizedData } from './Contract'\nimport Normalizer from './Normalizer'\nimport Attacher from './Attacher'\nimport Builder from './Builder'\nimport Incrementer from './Incrementer'\n\nexpor... | typescript | edit | 0 | 1 | mit | 776f278cfae3d7c2c0c8a3eaf4a0248ab0778adf | revolver-app/vuex-orm,revolver-app/vuex-orm | src/data/Data.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { shallow } from 'enzyme'\nimport {} from 'jest'\nimport React from 'react'\n\nimport CuneiformChar from '../CuneiformChar'\n\njest.mock('aphrodite/lib/inject')\n\ntest('<CuneiformChar /> contains the given character', () => {\n ... | typescript | edit | null | null | mit | b6e1551727cc59f8c2b768b756904fc4d17ad685 | loopingdoge/mesopotamia-jones,loopingdoge/mesopotamia-jones,loopingdoge/mesopotamia-jones | src/components/__tests__/CuneiformChar.test.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"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\nimport * as Api from './api'\nimport * as Options fro... | typescript | edit | 0 | 1 | mit | 770b1b3dbe52ae8cf5593487621e1ca8662efd9d | srackham/rimu | src/rimu/main.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as Proxy from \"harmony-proxy\";\n\nexport function createProxy ( state, previousState, multiplier ): any {\n return new Proxy( state, createHandler( previousState, multiplier ) );\n}\n\nfunction createHandler ( previousState,... | typescript | edit | 0 | 8 | mit | e0a9a68ab9937c28a4b406a7989b5b0400d1a5ea | gamestdio/timeframe,gamestdio/timeframe | src/Proxy.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { createAction } from 'redux-act'\n\nimport { remoteFunction } from '../../util/webextensionRPC'\nimport { Thunk } from '../types'\nimport * as selectors from './selectors'\nimport * as popup from '../selectors'\n\nconst createBo... | typescript | edit | 0 | 3 | mit | 855486dbcfcb013f0d72071a0e1712e032a0bcc4 | WorldBrain/WebMemex,WorldBrain/WebMemex | src/popup/bookmark-button/actions.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Type definitions for split v0.3.3\n// Project: https://github.com/dominictarr/split\n// Definitions by: Marcin Porębski <https://github.com/marcinporebski>\n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n\n/// <r... | typescript | edit | 0 | 0 | mit | 8d74e8882bb6c5abfce1d26bdfed06e3ca7d3269 | mcliment/DefinitelyTyped,dsebastien/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,AgentME/DefinitelyTyped,georgemarshall/DefinitelyTyped,borisyankov/DefinitelyTyped,dsebastien/DefinitelyTyped,georgemarshall/DefinitelyTyped,borisyankov/DefinitelyTyped,AgentME/DefinitelyTyped,AgentME/Defin... | types/split/index.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport class VersionInformation {\n public date: string = \"2017-08-03\";\n public commit: string = \"1.0.0\";\n public link: string = \"https://github.com/ultimate-comparisons/ultimate-comparison-BASE/releases/tag/1.0.0\";\n}\... | typescript | edit | 0 | 0 | mit | 08e2cb582527773b622d962feea58ee79bf8ed3d | ultimate-comparisons/ultimate-comparison-BASE,ultimate-comparisons/ultimate-comparison-BASE,ultimate-comparisons/ultimate-comparison-BASE,ultimate-comparisons/ultimate-comparison-BASE,ultimate-comparisons/ultimate-comparison-BASE | app/VersionInformation.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { AppBackdrop } from './backdrop';\n\nexport interface BackdropOptions {\n\tcontext?: HTMLElement;\n\tclassName?: string;\n}\n\nexport class Backdrop {\n\tprivate static backdrops: AppBackdrop[] = [];\n\n\tstatic push(options: Ba... | typescript | edit | 0 | 2 | mit | 5b49ddb801ea73840237fbf4173362b12c14333c | gamejolt/frontend-lib,gamejolt/frontend-lib,gamejolt/frontend-lib,gamejolt/frontend-lib | components/backdrop/backdrop.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as dotenv from 'dotenv';\nimport * as express from 'express';\nimport * as morgan from 'morgan';\nimport * as mongoose from 'mongoose';\nimport * as path from 'path';\n\nimport setRoutes from './routes';\n\nconst app = express(... | typescript | edit | 0 | 2 | mit | 3df73e61835dc85b6c50c6828ce498da9eddd5fa | DavideViolante/Angular-Full-Stack,DavideViolante/Angular-Full-Stack,DavideViolante/Angular2-Express-Mongoose,DavideViolante/Angular-Full-Stack,DavideViolante/Angular-Full-Stack,DavideViolante/Angular2-Express-Mongoose,DavideViolante/Angular2-Express-Mongoose | server/app.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { useContext } from 'react';\nimport { EventManager } from 'proton-shared/lib/eventManager/eventManager';\nimport Context from '../containers/eventManager/context';\n\nfunction useEventManager<EventModel, ListenerResult = void>()... | typescript | edit | 0 | 2 | mit | 4a674833baa7a885408eb8f94720b3f28ff312c2 | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | packages/components/hooks/useEventManager.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { timezone } from './timezone.service';\nimport { defaultFormats } from '../date/date.module';\n\nimport * as moment from 'moment';\nimport 'moment-timezone';\n\ndescribe('timezone', (): void => {\n\tit('should return the timezon... | typescript | edit | null | null | mit | 7fbeb670ec64ceaf271193d9e6cad0b5dc3534b9 | RenovoSolutions/TypeScript-Angular-Utilities,RenovoSolutions/TypeScript-Angular-Utilities,SamGraber/TypeScript-Angular-Utilities,SamGraber/TypeScript-Angular-Utilities | source/services/timezone/timezone.service.tests.ts | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { ComponentClass, FunctionComponent } from 'react';\nimport { Args as DefaultArgs, Annotations, BaseMeta, BaseStory } from '@storybook/addons';\nimport { StoryFnReactReturnType } from './types';\n\nexport { Args, ArgTypes, Parame... | typescript | edit | 0 | 0 | mit | 498363351afa8edf8e2cca2a235e023efccae11d | storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/react-storybook | app/react/src/client/preview/types-6-0.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { messages } from \"common/butlerd\";\nimport { Space } from \"common/helpers/space\";\nimport { Dispatch } from \"common/types\";\nimport React from \"react\";\nimport butlerCaller, { LoadingStateDiv } from \"renderer/hocs/butle... | typescript | edit | null | null | mit | daca5736eeef967891f02f322184122a57105c3c | itchio/itchio-app,itchio/itchio-app,itchio/itch,itchio/itchio-app,leafo/itchio-app,itchio/itch,leafo/itchio-app,itchio/itch,itchio/itch,itchio/itch,leafo/itchio-app,itchio/itch | src/renderer/pages/BrowserPage/BrowserContext/index.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as Arr from '../api/Arr';\nimport * as Fun from '../api/Fun';\n\nexport const Immutable = <T = Record<string,() => any>>(...fields: string[]) => {\n return function(...values: any[]): T {\n if (fields.length !== values.leng... | typescript | edit | 0 | 2 | mit | 7ce9f5b6fed80d18e0e8415b973c466903d00116 | tinymce/tinymce,TeamupCom/tinymce,FernCreek/tinymce,FernCreek/tinymce,tinymce/tinymce,tinymce/tinymce,FernCreek/tinymce,TeamupCom/tinymce | src/main/ts/ephox/katamari/data/Immutable.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Listable, ServerListing } from \"../../common/Listable\";\nimport { Store } from \"../Utility/Store\";\n\nexport type ListingOrigin = \"server\" | \"account\" | \"localStorage\";\n\nexport class Listing<T extends Listable> impl... | typescript | edit | 0 | 3 | mit | d069fe16cc151d69a040cbe0d1ba266a48e831a8 | cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative | client/Library/Listing.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport assert = require('assert');\nimport Schema = require('../../lib/db/schema');\nimport Type = require('../../lib/db/schema/type');\nimport db = require('../../lib/db');\n\ndescribe('db.collection', () => {\n describe('#constructor... | typescript | edit | 0 | 1 | apache-2.0 | f743e043f630801cb7ee8cf70862cb4defe92ddb | sgkim126/beyond.ts,noraesae/beyond.ts,sgkim126/beyond.ts,murmur76/beyond.ts,noraesae/beyond.ts,murmur76/beyond.ts,SollmoStudio/beyond.ts,SollmoStudio/beyond.ts | test/db/collection.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * Catch-all for ember-data.\n */\nexport default interface ModelRegistry {\n [key: string]: any;\n}\n\n```\n\nApply this change: Allow any type for registry"
},
{
"role": "assistant",
"content": "/**\n * Catch-all for... | typescript | edit | 0 | 0 | mit | 02b460100935fc7a977ac5a422351e79210a15c8 | ember-data/active-model-adapter,ember-data/active-model-adapter,ember-data/active-model-adapter | types/ember-data/types/registries/model.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Component, DoCheck, OnInit} from '@angular/core';\nimport {AuthService} from \"../auth/auth.service\";\nimport {HeaderService} from \"./header.service\";\nimport {Router} from \"@angular/router\";\nimport {Observable} from \"rxj... | typescript | edit | 0 | 2 | mit | afea95efb4dd4f8fa10d841fcb8c421e05147c32 | edushifts/book-voyage,edushifts/book-voyage,edushifts/book-voyage,edushifts/book-voyage | bookvoyage-frontend/src/app/header/header.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n'use strict';\n// The module 'vscode' contains the VS Code extensibility API\n// Import the module and reference it with the alias vscode in your code below\nimport * as vscode from 'vscode';\n\n// this method is called when your extens... | typescript | edit | 0 | 1 | mit | 9f46376ee03a1479916ffc11d634496a879c24fd | kaiwood/vscode-center-editor-window | src/extension.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Ionicons from '@expo/vector-icons/build/Ionicons';\nimport { useNavigation, useTheme } from '@react-navigation/native';\nimport * as React from 'react';\nimport { Platform, StyleSheet, Text, TouchableOpacity } from 'react-native'... | typescript | edit | null | null | bsd-3-clause | 90eda86b1dc5549355c2a5998ef8252000b6022c | exponentjs/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponent,exponentjs/exponent,exponent/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponent,exponentjs/exponent,exponentjs/exponent,exponent/exponent,exponent/expon... | home/components/UserSettingsButton.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport sleep from '../utils/sleep';\n\nexport default function WithAutheliaRunning(suitePath: string, waitTimeout: number = 5000) {\n const suite = suitePath.split('/').slice(-1)[0];\n var { setup, teardown } = require(`../../suites/$... | typescript | edit | 0 | 1 | mit | c534753c2c75d601836f20219f30ad89503c43b9 | clems4ever/authelia,clems4ever/two-factor-auth-server,clems4ever/authelia,clems4ever/authelia,clems4ever/authelia,clems4ever/two-factor-auth-server,clems4ever/authelia | test/helpers/context/WithEnvironment.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {fireOnce} from '../../src/utils';\n\ndescribe('fireOnce', () => {\n let callback: jasmine.Spy;\n\n beforeEach(() => {\n callback = jasmine.createSpy('callback');\n })\n\n it('function should only fire once (wi... | typescript | edit | 0 | 3 | mit | 323b33ded7f6a67841ca84746f747ba209afe3b6 | bkazi/react-layout-transition,bkazi/react-layout-transition,bkazi/react-layout-transition | tests/utils/fireOnce.test.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\n\nimport { NavParams } from 'ionic-angular';\n\nimport { UserData } from '../../providers/user-data';\n\n\n@Component({\n templateUrl: 'build/pages/session-detail/session-detail.html'\n})\nex... | typescript | edit | 0 | 1 | apache-2.0 | 68c80261260763c3efc59feb3989016da4909919 | laodice/ionic-conference-app-session2,laodice/ionic-conference-app-session2,laodice/ionic-conference-app-session2 | app/pages/session-detail/session-detail.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Clean from \"./Clean\";\nimport NodeWatchBuild from \"./NodeWatchBuild\";\nimport Test from \"./Test\";\nimport Typescript from \"./Typescript\";\nimport Build from \"./Build\";\nimport FrontendWatchBuild from \"./FrontendWatchBu... | typescript | edit | 0 | 0 | mit | 886c6b348c210f1bfe4608d68da3fd4ef0f8b3bd | mtfranchetto/smild,mtfranchetto/smild,mtfranchetto/smild | lib/tasks/Mappings.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport { Http } from '@angular/http';\nimport { Observable } from \"rxjs\";\n\n@Injectable()\nexport class AdminService {\n private url: string = API_URL;\n constructor(private http:Htt... | typescript | edit | 0 | 1 | mit | 2dadbb3b73e47f17dca96fadda080fa1c826a636 | UMM-CSci-3601-S17/digital-display-garden-iteration-4-dorfner-v2,UMM-CSci-3601-S17/digital-display-garden-iteration-4-dorfner-v2,UMM-CSci-3601-S17/digital-display-garden-iteration-4-dorfner-v2,UMM-CSci-3601-S17/digital-display-garden-iteration-4-dorfner-v2,UMM-CSci-3601-S17/digital-display-garden-iteration-4-dorfner-v2 | client/src/app/admin/admin.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n\n /*#######.\n ########\",#:\n #########',##\".\n ##'##'## .##',##.\n ## ## ## # ##\",#.\n ## ## ## ## ##'\n ## ## ## :##\n ## ## ##*/\n\n'use strict'\n\nimport { join } from 'path'\nimport { workspace, Extens... | typescript | edit | 0 | 1 | mit | 615015738b25854b984d44f4674a649f017eb844 | kube/vscode-clang-complete,kube/vscode-clang-complete | client/src/extension.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport class Dependument {\n private package: string;\n private templates: string;\n\n constructor(options: any) {\n if (!options.path) {\n throw new Error(\"No path specified in options\");\n }\n }\n}\n\n```\n\nApply thi... | typescript | edit | 0 | 3 | unlicense | f7cac1b8fe2b27666d0b1c5e96e1af306878d034 | dependument/dependument,dependument/dependument,Jameskmonger/dependument,Jameskmonger/dependument | src/dependument.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Constants } from 'expo-constants';\n\nimport Logs from '../logs/Logs';\nimport RemoteLogging from '../logs/RemoteLogging';\n\nif (Constants.manifest && Constants.manifest.logUrl) {\n // Enable logging to the Expo dev tools onl... | typescript | edit | 0 | 4 | bsd-3-clause | da606dd8b8106dea1beca9afc12e528ef29fb2fc | exponentjs/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent,exponent/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponent,exponentjs/exponent,exponent/exponent,exponentjs/exponent,exponent/exponent,exponentjs/expon... | packages/expo/src/environment/logging.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport \"./PassportModule\";\n\nexport * from \"./decorators/authenticate\";\nexport * from \"./decorators/overrideProtocol\";\nexport * from \"./decorators/protocol\";\n\nexport * from \"./interfaces/IProtocolOptions\";\nexport * from ... | typescript | edit | 0 | 0 | mit | 6693609566dcd7928faa676ab8fa2ee26f62fb40 | Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators | packages/passport/src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * Code is from https://medium.com/google-developer-experts/\n * angular-supercharge-your-router-transitions-using-new-animation-features-v4-3-3eb341ede6c8\n */\nimport {\n sequence,\n trigger,\n stagger,\n animate,\n style,\n... | typescript | edit | 0 | 0 | mit | b37a57f0b7b154b38375a722b1f9c56a5d23a435 | sebastienbarbier/sebastienbarbier.com,sebastienbarbier/sebastienbarbier.com,sebastienbarbier/sebastienbarbier.com,sebastienbarbier/sebastienbarbier.com | src/app/router.animations.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { AngularCompilerPlugin } from \"@ngtools/webpack\";\nimport * as path from \"path\";\nimport { Configuration, DllReferencePlugin } from \"webpack\";\nimport * as webpackMerge from \"webpack-merge\";\n\nimport { isAOT, isProd, ou... | typescript | edit | 0 | 3 | mit | cba84223b4544b93f619113d96e749bd6b58368c | MattJeanes/AngularBasic,MattJeanes/AngularBasic,MattJeanes/AngularBasic,MattJeanes/AngularBasic | AngularBasic/webpack.config.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { async, ComponentFixture, TestBed } from '@angular/core/testing';\nimport { By } from '@angular/platform-browser';\n\nimport { RegisterComponent } from './register.component';\n\ndescribe('Component: Register', () => {\n let co... | typescript | edit | 0 | 1 | mit | e5a52f6a6ec35a6ca1ffcb9cd4f60fd3b0fa6084 | DavideViolante/Angular-Full-Stack,DavideViolante/Angular-Full-Stack,DavideViolante/Angular2-Express-Mongoose,DavideViolante/Angular-Full-Stack,DavideViolante/Angular2-Express-Mongoose,DavideViolante/Angular-Full-Stack,DavideViolante/Angular2-Express-Mongoose | client/app/register/register.component.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { isSameDay, isSameMonth } from 'date-fns';\nimport { DayPickerProps, ModifiersStatus } from '../../../types';\n\nexport function createTabIndex(\n day: Date,\n modifiers: ModifiersStatus,\n props: DayPickerProps\n): number | ... | typescript | edit | 0 | 5 | mit | bac27f64e1472eff96191f3f36ea11ffa4261c7a | gpbl/react-day-picker,gpbl/react-day-picker,gpbl/react-day-picker | packages/react-day-picker/src/components/Day/utils/createTabIndex.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\ndeclare const LABKEY: {\n CSRF: string,\n ActionURL: any,\n getModuleContext(moduleName: string): any;\n};\n\nexport function getCSRF(): string {\n return LABKEY.CSRF || \"\";\n}\n\nexport function getCurrentController(): st... | typescript | edit | 0 | 2 | apache-2.0 | b3700b2e99af6c24a58330885c3767ec6c541a78 | WNPRC-EHR-Services/wnprc-modules,WNPRC-EHR-Services/wnprc-modules,WNPRC-EHR-Services/wnprc-modules,WNPRC-EHR-Services/wnprc-modules,WNPRC-EHR-Services/wnprc-modules,WNPRC-EHR-Services/wnprc-modules,WNPRC-EHR-Services/wnprc-modules | WebUtils/src/ts/WebUtils/LabKey.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\r\n// import { DisableableAction } from '@shopify/polaris/types/';\r\nimport { SearchItem, Requester } from '../../types';\r\nimport { ResourceList } from '@shopify/polaris';\r\nimport InfoContainer from ... | typescript | edit | null | null | mit | be145e248c968ac633a5e465177976417062c895 | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | src/components/SearchTable/SearchCard.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { head } from \"lodash\"\nimport { isErrorInfo, sendErrorToService } from \"Utils/errors\"\n\nexport const shouldCaptureError = (environment: string) =>\n environment === \"staging\" || environment === \"production\"\n\nexport d... | typescript | edit | 0 | 3 | mit | e2c912c8ec1fad987caa7a74b719ea355ca28be2 | artsy/reaction-force,xtina-starr/reaction,artsy/reaction-force,artsy/reaction,artsy/reaction,xtina-starr/reaction,artsy/reaction,xtina-starr/reaction,xtina-starr/reaction | src/Utils/logger.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n///<reference path=\"../../typings/main.d.ts\" />\n\nimport expect = require('expect.js');\nimport { MustLaw } from 'courtroom/courtroom/laws/must';\n\ndescribe('MustLaw', () => {\n\n describe('constructor', () => {\n\n it('sh... | typescript | edit | 0 | 2 | mit | dba36410c91ca38704806e25c0b7684e318b6e17 | Jameskmonger/courtroom,Jameskmonger/courtroom | spec/laws/must.spec.ts | rejected_duplicate | Near-duplicate of sample 112749 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {\n generateProjectNameResolve,\n generateProjectNamesAssign\n} from \"@truffle/db/loaders/resources/projects\";\n\nimport { generateNameRecordsLoad } from \"@truffle/db/loaders/resources/nameRecords\";\nimport {\n toIdObject,... | typescript | edit | 0 | 2 | mit | 89c42acdf8ac0af854e81769fcfa7265d85e4ab5 | ConsenSys/truffle | packages/db/src/loaders/commands/names.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {expandHistoricalDirectory} from \"../../shell/BuiltInCommands\";\nimport {directoriesSuggestionsProvider, Suggestion} from \"../autocompletion_utils/Common\";\nimport * as _ from \"lodash\";\nimport {PluginManager} from \"../../... | typescript | edit | 0 | 1 | mit | 99d223172d84a6bc5ece795d8b7fb4ea7d5ab283 | railsware/upterm,vshatskyi/black-screen,black-screen/black-screen,shockone/black-screen,black-screen/black-screen,railsware/upterm,shockone/black-screen,vshatskyi/black-screen,vshatskyi/black-screen,vshatskyi/black-screen,black-screen/black-screen | src/plugins/autocompletion_providers/Cd.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { round } from './round'\n\n/**\n * Number sign display mode\n */\nexport const enum Sign {\n Normal,\n Forced,\n}\n\n/**\n * Display bytes in human readable format like:\n * 23GB\n * -43B\n * It's also possible to force s... | typescript | edit | 0 | 4 | mit | 21b7c0e71afd14484adfb100d6da432ec49bb6d7 | artivilla/desktop,artivilla/desktop,artivilla/desktop,kactus-io/kactus,artivilla/desktop,j-f1/forked-desktop,say25/desktop,j-f1/forked-desktop,desktop/desktop,kactus-io/kactus,say25/desktop,j-f1/forked-desktop,shiftkey/desktop,shiftkey/desktop,j-f1/forked-desktop,shiftkey/desktop,desktop/desktop,desktop/desktop,shiftke... | app/src/ui/lib/bytes.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { CancellationToken, Progress } from \"vscode\";\nimport { Extension } from \"../Extensibility/Extension\";\nimport { IProgressState } from \"./IProgressState\";\n\n/**\n * Represents a task.\n *\n * @template TExtension\n * The ... | typescript | edit | null | null | mit | 166a449e879bc7d0278ed68f3bf78c58b69f696b | manuth/MarkdownConverter,manuth/MarkdownConverter,manuth/MarkdownConverter | src/System/Tasks/Task.ts | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { SequelizeDB } from '../libs/SequelizeDB';\nimport * as Sequelize from 'sequelize';\n\n/**\n * @author Humberto Machado\n */\nexport abstract class BaseModel<ModelAttributes extends SequelizeBaseModelAttr> {\n //Sequelize Mod... | typescript | edit | 0 | 1 | mit | d59e2d17cea0110262b72397fe4d25b253e53de7 | linck/protontype | src/models/BaseModel.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { BehaviorSubject } from \"rxjs/BehaviorSubject\";\nimport { Injectable } from \"@angular/core\";\n\n@Injectable()\nexport class SettingsService {\n public showToolsPanel$: BehaviorSubject<boolean> = new BehaviorSubject(false);\... | typescript | edit | 0 | 0 | mit | cc1576c64298827251052c9af9596cc54086faeb | chipster/chipster-web,chipster/chipster-web,chipster/chipster-web | src/app/shared/services/settings.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * @since 2.10.0\n */\nimport { Either, Left } from './Either'\nimport { NonEmptyArray } from './NonEmptyArray'\nimport { Option, Some } from './Option'\nimport { ReadonlyNonEmptyArray } from './ReadonlyNonEmptyArray'\n\n// -------... | typescript | edit | 0 | 1 | mit | c252ce2f08d99c2698b0d67a8fd95da199efe436 | gcanti/fp-ts,gcanti/fp-ts | src/internal.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { GitProcess, IGitResult } from '../lib'\n\n// NOTE: bump these versions to the latest stable releases\nexport const gitVersion = '2.19.2'\nexport const gitLfsVersion = '2.6.0'\n\nconst temp = require('temp').track()\n\nexport as... | typescript | edit | 0 | 1 | mit | ccc0f8515b550f8ec8224fdc24accad3a8986822 | desktop/dugite,desktop/dugite,desktop/dugite | test/helpers.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport { loadScript } from 'utils/helpers';\nimport { Grid, createStyles, Theme, withStyles } from '@material-ui/core';\n\nconst styles = (theme: Theme) =>\n createStyles({\n '@global': {\n '#co... | typescript | edit | null | null | mit | ec4a5fefe815efeac548b6b466239ab8f82309c3 | mbrookes/material-ui,rscnt/material-ui,mbrookes/material-ui,callemall/material-ui,callemall/material-ui,oliviertassinari/material-ui,mui-org/material-ui,rscnt/material-ui,callemall/material-ui,oliviertassinari/material-ui,oliviertassinari/material-ui,dmtrKovalenko/material-ui-pickers,mbrookes/material-ui,callemall/mate... | docs/_shared/Ad.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\ndeclare module 'connected-react-router' {\n import * as React from 'react'\n import { Middleware, Reducer } from 'redux'\n import { History, Path, Location, LocationState, LocationDescriptorObject } from 'history'\n\n interface Conn... | typescript | edit | 0 | 1 | mit | 0d73f5e867ca76e158dde834fda1502fe2f99f91 | supasate/connected-react-router | index.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport observable = require(\"ui/core/observable\");\nimport view = require(\"ui/core/view\");\nimport application = require(\"application\");\n\nexport class Switch extends view.View {\n private static checkedProperty = \"checked\"... | typescript | edit | 0 | 3 | mit | ccc479215df693a58585daa9d82e05085c2139df | NativeScript/NativeScript,hdeshev/NativeScript,genexliu/NativeScript,NativeScript/NativeScript,NativeScript/NativeScript,genexliu/NativeScript,NativeScript/NativeScript,NativeScript/NativeScript,hdeshev/NativeScript,hdeshev/NativeScript,genexliu/NativeScript | ui/switch/switch.android.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport type { IMenuProps } from './props';\nimport View from '../../primitives/View';\nimport { usePropsConfig } from '../../../hooks';\nimport { usePopover } from '../../../core';\n\nexport const Menu = ({\n... | typescript | edit | null | null | mit | 84a110f95a45f9ca98f292194f0c631d5006db7e | GeekyAnts/NativeBase,GeekyAnts/NativeBase,GeekyAnts/NativeBase,GeekyAnts/NativeBase,GeekyAnts/NativeBase | src/components/composites/Menu/Menu.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { AuthenticationService } from './core/authentication.service';\n\n@Component({\n selector: 'my-app',\n templateUrl: './app.component.html',... | typescript | edit | 0 | 2 | mit | 6da978071e9202926372dc1033883f3b7f173879 | thinhpham/mean-docker,thinhpham/mean-docker,thinhpham/mean-docker,thinhpham/mean-docker | client/src/app/app.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Vue from 'vue';\nimport VueRouter from 'vue-router';\nimport DatasetsPage from './components/DatasetsPage.vue';\nVue.use(VueRouter);\n\nconst router = new VueRouter({\n routes: [\n { path: '/', redirect: '/about' },\n { pa... | typescript | edit | 0 | 1 | apache-2.0 | fb00f95c2d5469874e87e8d3ec31c0a8acfa4ba9 | METASPACE2020/sm-webapp,METASPACE2020/sm-webapp,METASPACE2020/sm-webapp,METASPACE2020/sm-webapp | src/router.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport * as PropTypes from 'prop-types';\nimport { SubMenu as RcSubMenu } from 'rc-menu';\nimport classNames from 'classnames';\n\ninterface TitleClickEntity {\n key: string;\n domEvent: Event;\n}\n\ne... | typescript | edit | null | null | mit | 6dce9aff3ad210f17504b2a8afce2bb462365b48 | elevensky/ant-design,elevensky/ant-design,icaife/ant-design,ant-design/ant-design,zheeeng/ant-design,ant-design/ant-design,icaife/ant-design,ant-design/ant-design,elevensky/ant-design,icaife/ant-design,elevensky/ant-design,zheeeng/ant-design,ant-design/ant-design,zheeeng/ant-design,zheeeng/ant-design,icaife/ant-design | components/menu/SubMenu.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\nimport { ActivatedRoute, Router } from '@angular/router';\nimport { Http } from '@angular/http';\nimport { MdSnackBar } from '@angular/material';\n\n@Component({\n selector: 'reset-password',... | typescript | edit | 0 | 1 | mit | e768807e8d457bfa57ea2bef4b13c29fd62dbdca | gcriva/gcriva-frontend,gcriva/gcriva-frontend,gcriva/gcriva-frontend,gcriva/gcriva-frontend | src/app/pages/reset-password/reset.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from \"react\";\nimport { inject, observer } from \"mobx-react\"\n\nimport { ConfigStore, CONFIG_STORE } from \"../stores/ConfigStore\"\nimport { JDKProject, Task } from \"../stores/model\"\nimport JDKProjectForm from \"./J... | typescript | edit | null | null | mit | de358f3e7abe8de06e0801469bd824626c125164 | TheIndifferent/jenkins-scm-koji-plugin,judovana/jenkins-scm-koji-plugin,TheIndifferent/jenkins-scm-koji-plugin,judovana/jenkins-scm-koji-plugin,judovana/jenkins-scm-koji-plugin | src/components/ConfigForm.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Type definitions for query-string v3.0.0\n// Project: https://github.com/sindresorhus/query-string\n// Definitions by: Sam Verschueren <https://github.com/SamVerschueren>\n// Definitions: https://github.com/DefinitelyTyped/Definitely... | typescript | edit | 0 | 1 | mit | 51fa4f736208b01a5d507390aa6cf4080ec2f45d | QuatroCode/DefinitelyTyped,benishouga/DefinitelyTyped,isman-usoh/DefinitelyTyped,scriby/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,AgentME/DefinitelyTyped,shlomiassaf/DefinitelyTyped,chrootsu/DefinitelyTyped,hellopao/DefinitelyTyped,johan-gorter/DefinitelyTyped,nycdotnet/DefinitelyTyped,magny/DefinitelyTyped,subash-a/... | query-string/query-string.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, OnInit, OnDestroy } from '@angular/core';\nimport { Person, SearchService } from '../shared/index';\nimport { Router, ActivatedRoute } from '@angular/router';\nimport { Subscription } from 'rxjs';\n\n@Component({\n ... | typescript | edit | 0 | 2 | apache-2.0 | cac616fe60d9e7f5f60df75ccfca88e37f1a5d86 | oktadeveloper/okta-angular-openid-connect-example,oktadeveloper/okta-angular-openid-connect-example,oktadeveloper/okta-angular-openid-connect-example | src/app/search/search.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nnamespace $ {\n\n\texport class $mol_after_frame extends $mol_object2 {\n\n\t\tstatic queue = new Set< ()=> void >()\n\t\tstatic scheduled = 0\n\n\t\tstatic schedule( task : ()=> void ) {\n\t\t\t\n\t\t\tthis.queue.add( task )\n\t\t\t\n... | typescript | edit | 0 | 1 | mit | 536bca01e371e6584585845e6de0075acdebfe8e | eigenmethod/mol,eigenmethod/mol,eigenmethod/mol | after/frame/frame.web.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\n\nimport { StateIndicator } from '@waldur/core/StateIndicator';\n\nimport { Resource } from '../types';\n\nexport const ResourceStateField = ({ row }: {row: Resource}) => (\n <StateIndicator\n label=... | typescript | edit | null | null | mit | 741f08acf5bbff04ed9aa5bae5baffa9d967cc7e | opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport | src/marketplace/resources/list/ResourceStateField.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Fragment } from \"react\"\nimport App, { Container } from \"next/app\"\nimport Head from \"next/head\"\nimport \"normalize.css/normalize.css\"\n\n// A custom app to support importing CSS files globally\nclass MyApp extends App ... | typescript | edit | null | null | mit | 299f66cad0ae62ac6b9ed5fc4f08b5c120704508 | JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk | pages/_app.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Dockerfile } from 'dockerfilejs';\n\nexport interface CreateDrupalDockerfileOptions {\n /**\n * Which PHP tag to use (e.g., `7.4`)\n */\n tag: string;\n\n /**\n * Whether or not to include the Memcached PECL extension.... | typescript | edit | 0 | 3 | mit | 877e2805d9a40055b9546c652b22bd50d64df66d | forumone/generator-web-starter,forumone/generator-web-starter,forumone/generator-web-starter,forumone/generator-web-starter,forumone/generator-web-starter | src/app/plugins/platform/Docker/plugins/cms/Drupal8/createDrupalDockerfile.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Component, View, provide} from 'angular2/core';\nimport {bootstrap} from 'angular2/platform/browser';\nimport {RouteConfig, ROUTER_PROVIDERS, ROUTER_DIRECTIVES, LocationStrategy, HashLocationStrategy} from 'angular2/router';\n\n... | typescript | edit | 0 | 0 | mit | ebc761f0d4c0e6262b2960a0d53aae75ceac9665 | lokanx/courses-angular2-persons,lokanx/courses-angular2-persons,lokanx/courses-angular2-persons | src/app/app.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nconst initialState = {\n options: {\n dismissOnClickOutside: false,\n dismissOnEscape: false,\n transitionTime: 300,\n },\n overlayNode: null,\n}\n\nexport default function overlayTechnology(state = initialState, action) {\n... | typescript | edit | 0 | 3 | mit | 6c364a9efe036e59f17112aaf2c259e0e42a3fa2 | nooproblem/influxdb,influxdb/influxdb,influxdb/influxdb,influxdb/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,influxdata/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,li-ang/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,li-ang/influxd... | ui/src/shared/reducers/overlayTechnology.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Configstore = require('configstore');\nconst cs = new Configstore('foo');\n\nlet value: any;\nlet key: string;\nlet num: number;\nlet object: any;\n\ncs.set(key, value);\nvalue = cs.get(key);\ncs.delete(key);\n\nobject = cs.all;\... | typescript | edit | 0 | 0 | mit | ec7a15613f2ccdb7e63d0ffc1d154bfa93395355 | borisyankov/DefinitelyTyped,magny/DefinitelyTyped,mcliment/DefinitelyTyped,markogresak/DefinitelyTyped,georgemarshall/DefinitelyTyped,magny/DefinitelyTyped,georgemarshall/DefinitelyTyped,dsebastien/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,dsebastien/DefinitelyTyped,borisyankov/Defin... | types/configstore/configstore-tests.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as Koa from 'koa';\r\nimport * as session from 'koa-session';\r\n\r\nconst app = new Koa();\r\n\r\napp.use(session(app));\r\n\r\napp.listen(3000);\r\n\n```\n\nApply this change: Modify the module style of koa-session"
},
{
... | typescript | edit | 0 | 0 | mit | 7a709fde3b852208481c1f4b6b6f0ea22c0856f3 | amir-arad/DefinitelyTyped,one-pieces/DefinitelyTyped,isman-usoh/DefinitelyTyped,chrootsu/DefinitelyTyped,abbasmhd/DefinitelyTyped,AgentME/DefinitelyTyped,GiedriusGrabauskas/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,borisyankov/DefinitelyTyped,chrootsu/DefinitelyTyped,benishouga/DefinitelyTyped,magny/DefinitelyTyped,Q... | types/koa-session/koa-session-tests.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Currency } from '@proton/shared/lib/interfaces';\n\nimport { Button, ButtonProps, Price } from '../../components';\nimport { classnames } from '../../helpers';\n\ninterface Props extends Omit<ButtonProps, 'onSelect' | 'onClick'... | typescript | edit | null | null | mit | dd7b0e5357640756ee39b2acbc356e3cec2063e5 | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | packages/components/containers/payments/AmountButton.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { JsonController, Get, Post, Patch, Put, Delete, Authorized, Param, QueryParam } from \"routing-controllers\"\nimport { getConnectionManager, Repository, FindManyOptions, Connection } from 'typeorm';\nimport { EntityFromParam, En... | typescript | edit | 0 | 1 | mit | 85f362b376cd26551c69e2097b81f70df362efef | davidglezz/tfg,davidglezz/tfg,davidglezz/tfg,davidglezz/tfg | api-server/src/controller/BrandController.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport $ from \"jquery\";\n\nexport function initialize(): void {\n // this will hide the alerts that you click \"x\" on.\n $(\"body\").on(\"click\", \".alert-box > div .exit\", function () {\n const $alert = $(this).closes... | typescript | edit | 0 | 1 | apache-2.0 | 1585c2a12cc63ba7d2aca3e150857c07fb6d77d5 | rht/zulip,hackerkid/zulip,zulip/zulip,andersk/zulip,kou/zulip,hackerkid/zulip,punchagan/zulip,eeshangarg/zulip,kou/zulip,andersk/zulip,andersk/zulip,eeshangarg/zulip,rht/zulip,zulip/zulip,kou/zulip,kou/zulip,andersk/zulip,eeshangarg/zulip,zulip/zulip,zulip/zulip,punchagan/zulip,eeshangarg/zulip,eeshangarg/zulip,punchag... | static/js/alert_popup.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Controller, Get } from \"@nestjs/common\";\nimport {\n HealthCheck,\n HealthCheckResult,\n HealthCheckService,\n TypeOrmHealthIndicator\n} from \"@nestjs/terminus\";\n\nimport TopologyLoadedIndicator from \"./topology-loade... | typescript | edit | 0 | 1 | apache-2.0 | 894bac11748775091ba848e772a1a6e6ed1e2a33 | PublicMapping/DistrictBuilder,PublicMapping/DistrictBuilder,PublicMapping/DistrictBuilder,PublicMapping/DistrictBuilder,PublicMapping/DistrictBuilder | src/server/src/healthcheck/healthcheck.controller.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { TransformOptions } from '@babel/core';\nimport { Configuration } from 'webpack';\n\ntype Docgen = 'react-docgen' | 'react-docgen-typescript';\ninterface TypescriptOptions {\n typescriptOptions?: { docgen?: Docgen };\n}\nconst ... | typescript | edit | 0 | 3 | mit | 688dc438d9674ede6ab737b1d106a4de08bb74d6 | storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/react-storybook,storybooks/react-storybook | app/react/src/server/framework-preset-react-docgen.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { BookmarkAttrs } from '../../store'\n\nconst FORM = '.bookmark-detail-unit form:not(.remove-bookmark-form)'\n\nexport class Scraper {\n scrapeBookmarkPage(doc: Document): BookmarkAttrs {\n const res = {} as any\n const ar... | typescript | edit | 0 | 5 | mit | 5fc4845d74682fe70de39c31f758f4f827bfc34b | 8th713/cockpit-for-pixiv,8th713/cockpit-for-pixiv | src/service/infra/Scraper.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport const resolvedPromise = Promise.resolve(true);\n\nexport async function waitFor<T>(action: () => T | Promise<T>, checkEveryMilliseconds: number = 500, tryForMilliseconds: number = 10000, token?: { isCancellationRequested: boolean... | typescript | edit | 0 | 1 | mit | becf5cd6594df53ee89aa2ba10475b8e1d5aa20c | Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code | src/shared/utils/promises.ts | accepted | null | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.