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 React, {Component} from 'react'\nimport {connect} from 'react-redux'\nimport {bindActionCreators} from 'redux'\n\nimport ColorScaleDropdown from 'src/shared/components/ColorScaleDropdown'\n\nimport {updateLineColors} from 'src/da... | typescript | edit | null | null | mit | d40540a3cefa62121b9c9e9240e780d08ecb8f0b | influxdb/influxdb,influxdb/influxdb,influxdb/influxdb,nooproblem/influxdb,influxdata/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,nooproblem/influxdb,li-ang/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,influxdata/influxdb,mark-rushakoff/influxd... | ui/src/shared/components/LineGraphColorSelector.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path=\"Interface.ts\" />\n/// <reference path=\"../Core/Interface.ts\" />\n/// <reference path=\"DefaultControlRouter.ts\" />\n/// <reference path=\"DefaultControlEvents.ts\" />\n\nmodule TameGame {\n // Extensions to ... | typescript | edit | 0 | 2 | apache-2.0 | cc9ea4af724c895606f99857416c1649720f9b70 | TameGame/Engine,TameGame/Engine,TameGame/Engine | TameGame/Input/GameInputBehavior.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as bootstrap from './bootstrap';\n\n//\n// PLEASE DO NOT MODIFY / DELETE UNLESS YOU KNOW WHAT YOU ARE DOING\n//\n// This file is providing the test runner to use when running extension tests.\n// By default the test runner in u... | typescript | edit | 0 | 2 | mit | 7c43976bf5ea280b1060770f8ddd8f1ba9c9b47d | neild3r/vscode-php-docblocker | test/index.ts | rejected_duplicate | Near-duplicate of sample 112687 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { expect } from 'chai'\nimport Up from '../../../index'\nimport { insideDocumentAndParagraph } from '../Helpers'\nimport { LinkNode } from '../../../SyntaxNodes/LinkNode'\nimport { InlineSpoilerNode } from '../../../SyntaxNodes/I... | typescript | edit | 0 | 1 | mit | d7caf50a76ab9e5a6d42aeff661ab8d716bce95c | start/up,start/up | src/Test/Ast/EdgeCases/LinkifiedConvention.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { expect } from 'chai'\nimport Up from '../../index'\nimport { DocumentNode } from '../../SyntaxNodes/DocumentNode'\nimport { PlainTextNode } from '../../SyntaxNodes/PlainTextNode'\nimport { ParagraphNode } from '../../SyntaxNode... | typescript | edit | 0 | 1 | mit | db42d0afd549251215587c8867940f2b65c86818 | start/up,start/up | src/Test/Ast/OutlineSeparation.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as shelljs from 'shelljs';\nimport * as path from 'path';\nimport * as fs from 'fs';\n\nvar packageDir = path.join(path.dirname(fs.realpathSync(__filename)), '../');\nshelljs.cd(packageDir);\nshelljs.exec(path.join(packageDir, ... | typescript | edit | 0 | 0 | mit | b34117ec84770d93c1ec2ec5a5e3f58eec502ed9 | AyaMorisawa/Disskey,AyaMorisawa/Disskey,AyaMorisawa/Disskey | src/command.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { deepEqual } from 'assert';\n\nexport default (_module: NodeModule, tester: (check: <T>(name: string, a: T, b: T) => void ) => void) => {\n const checkedCounts: { [key: string]: number } = {};\n const stackRegex = new RegExp(`... | typescript | edit | 0 | 2 | mit | 7f4bb8b30b7413cad4e5044fb3d07f305297aa89 | ikatyang/types-ramda,ikatyang/types-ramda | src/checker.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Component} from '@angular/core';\nimport {MD_CARD_DIRECTIVES} from '@angular2-material/card';\nimport {MdButton} from '@angular2-material/button';\nimport {MD_LIST_DIRECTIVES} from '@angular2-material/list';\nimport {MD_INPUT_DI... | typescript | edit | 0 | 2 | mit | 7869eee8579a37a72a79a60af9046f7a125b1df0 | JSMike/Material2-Survey,JSMike/Material2-Survey,JSMike/Material2-Survey | client/app/components/survey-login.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n'use strict';\n\nimport * as cp from 'child_process';\nimport * as vsc from 'vscode';\n\nexport default class Dscanner {\n public static path: string;\n public static collection: vsc.DiagnosticCollection;\n\n public constructor... | typescript | edit | 0 | 1 | mit | 5af1bd8343bd7b1a0c6906e0dbb990f3b0e2999b | mattiascibien/dlang-vscode,dlang-vscode/dlang-vscode | src/dscanner.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { useLocalStorage } from 'react-use';\n\nexport const USERNAME_LOCAL_STORAGE_KEY = 'USERNAME';\n\ninterface User {\n username: string;\n}\n\nconst useUser = () => {\n return useLocalStorage<User | undefined>(USERNAME_LOCAL_STOR... | typescript | edit | 0 | 1 | mit | ce2c0f5a70a7eaa022efc981f0e348f902dd924b | sheldarr/Votenger,sheldarr/Votenger | hooks/useUser/index.tsx | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Message } from \"@artsy/palette\"\nimport React from \"react\"\nimport styled from \"styled-components\"\n\ninterface ArtworkGridEmptyStateProps {\n onClearFilters?: () => void\n}\n\nexport const ArtworkGridEmptyState: React.S... | typescript | edit | null | null | mit | ba83cbf441c20bf1630b38ecbfaa3d1289b0c147 | artsy/reaction,artsy/reaction,artsy/reaction-force,artsy/reaction-force,artsy/reaction | src/Components/ArtworkGrid/ArtworkGridEmptyState.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Copyright 2016 Joe Duffy. All rights reserved.\n\n\"use strict\";\n\nimport * as contract from '../contract';\n\nexport interface ILogger {\n infof(msg: string, ...args: any[]): void;\n errorf(msg: string, ...args: any[]): void... | typescript | edit | 0 | 3 | mit | 38ff21bbc0f64e805b75aa954fe2a748ad32e76f | joeduffy/nodets | src/log/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as fs from 'fs';\nimport * as fileGatherer from '../util/file-gatherer';\nimport { ElmApp, Context } from '../domain';\n\nfunction setup(app: ElmApp, directory: string) {\n app.ports.loadContext.subscribe(() => {\n co... | typescript | edit | 0 | 2 | mit | 1e136657ea137e0f63b5bf70ae38ec1e6da994be | stil4m/elm-analyse,stil4m/elm-analyse,stil4m/elm-analyse,stil4m/elm-analyse | ts/ports/context.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport class NewParent {\n\n private static GENDER = {\n MALE: 1,\n FEMALE: 2\n };\n\n FirstName: string;\n LastName: string;\n PhoneNumber: string;\n EmailAddress: string;\n GenderId: number = NewParent.GENDER.FEMALE;\n C... | typescript | edit | 0 | 2 | bsd-2-clause | 5de7af22754a1fcce14cd411d6f1cee40198afca | crdschurch/crds-signin-checkin,crdschurch/crds-signin-checkin,crdschurch/crds-signin-checkin,crdschurch/crds-signin-checkin | front_end/src/app/shared/models/new-parent.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport * from \"./components\";\nexport * from \"./decorators/jsonMapper\";\nexport * from \"./decorators/onDeserialize\";\nexport * from \"./decorators/onSerialize\";\nexport * from \"./domain/JsonMapperContext\";\nexport * from \"./do... | typescript | edit | 0 | 0 | mit | 324b533c9970942c442ed84f1e556cdd31e7bbb3 | Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators | packages/json-mapper/src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { ModifierStatus } from '../../types';\nimport { useDayPicker } from '../useDayPicker';\nimport { useSelection } from '../useSelection';\nimport { getModifierStatus } from './utils/getModifierStatus';\n\n/** Return the status for... | typescript | edit | 0 | 11 | mit | 6472e895915e84019b5edd5afcfe1b1b4616f335 | gpbl/react-day-picker,gpbl/react-day-picker,gpbl/react-day-picker | packages/react-day-picker/src/hooks/useModifiers/useModifiers.ts | rejected_complexity | Cyclomatic complexity too high: 11 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\n\n@Component({\n selector: 'avl-about',\n template: require('html!./about.component.html'),\n styles: [require('!raw!sass!./about.component.scss')]\n})\nexport class AboutComponent {\... | typescript | edit | 0 | 1 | mit | f5c228dd7b5779dddd1ac2dea7dea813545e072e | jaesung2061/anvel,jaesung2061/anvel,jaesung2061/anvel | angular/app/pages/about/about.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Cache, CacheClass } from \"memory-cache\"\n\nexport type EntriesReloader<Entry> = () => Promise<Entry[]>\n\nexport class LoaderEntriesCache<Entry> {\n get entries(): Promise<Entry[]> {\n return this.getEntries()\n }\n\n r... | typescript | edit | 0 | 2 | mit | 293a15b13bc581e8fc6c3807294f3d7af198fbca | JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk | loaders/LoaderEntriesCache.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nvar Redis = require('ioredis');\nimport { Log } from './../log';\nimport { Subscriber } from './subscriber';\n\nexport class RedisSubscriber implements Subscriber {\n /**\n * Redis pub/sub client.\n *\n * @type {object}\n... | typescript | edit | 0 | 4 | mit | 97411075f5eeb19eee057671bf69ae4d037ab720 | tlaverdure/laravel-echo-server,tlaverdure/laravel-echo-server | src/subscribers/redis-subscriber.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Metadata_artwork } from \"__generated__/Metadata_artwork.graphql\"\nimport { ContextConsumer } from \"Artsy\"\nimport colors from \"Assets/Colors\"\nimport { garamond } from \"Assets/Fonts\"\nimport StyledTextLink from \"Compon... | typescript | edit | null | null | mit | 69fe3050927856d6741e2f25e01660c051e074b6 | artsy/reaction,artsy/reaction-force,xtina-starr/reaction,artsy/reaction-force,artsy/reaction,xtina-starr/reaction,artsy/reaction,xtina-starr/reaction,xtina-starr/reaction | src/Components/Artwork/Metadata.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Abi, ImmutableReferences } from \"@truffle/contract-schema/spec\";\n\nexport type Compilation = {\n sourceIndexes: string[];\n contracts: CompiledContract[];\n compiler: {\n name: string | undefined;\n version: string ... | typescript | edit | 0 | 0 | mit | 38c2fc47bf987b41ad8afd3fdc0fca494d6cc9fe | ConsenSys/truffle | packages/compile-common/src/types.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {fork} from \"child_process\";\n\nimport {IWorkerThreadFactory} from \"../../common/worker/worker-thread-factory\";\nimport {DefaultWorkerThread} from \"../../common/worker/default-worker-thread\";\nimport {IWorkerThread} from \"... | typescript | edit | 0 | 1 | mit | a4d1698e2e428801e86e7543f427aa917225e538 | DatenMetzgerX/parallel.es,DatenMetzgerX/parallel.es,MichaReiser/parallel.es,MichaReiser/parallel.es,DatenMetzgerX/parallel.es,MichaReiser/parallel.es | src/node/worker/node-worker-thread-factory.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { ITask, tasksRepository } from \"../tasks\";\n\njest.mock(\"axios\", () => ({\n default: {\n get: (): Promise<any> => Promise.reject(new Error()),\n },\n}));\n\nit(\"gets no task on error\", async () => {\n expec... | typescript | edit | 0 | 1 | mit | c9719c0e99347cf07389228b89f60c8808cd2ac2 | raviqqe/code2d,raviqqe/code2d,raviqqe/code2d,raviqqe/code2d | app/src/lib/__tests__/tasks_xfail.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Test from '../Test';\n\nclass Cookies extends Test {\n protected request: RequestInterface;\n\n protected logger: LoggerInterface;\n\n constructor(request: RequestInterface, logger: LoggerInterface) {\n super();\n this.r... | typescript | edit | 0 | 2 | mit | 8c591994a09eee5f4f89ca92a6a043e384c59b2c | juffalow/pentest-tool-lite,juffalow/pentest-tool-lite | src/security/Cookies.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Observable, map} from '../../src/Observable';\nimport {h} from '../../src/DOMBuilder';\nimport run from '../../src/run';\n\n\nconst app = (input$: Observable<string>) => {\n let inputOn;\n\n const DOM = h('div', [\n h('labe... | typescript | edit | 0 | 1 | mit | 9dc850c2a4f9e9a0034bcd8e9ba5f9dd1a7c7ee1 | Funkia/hareactive,Funkia/hareactive,paldepind/hareactive,Funkia/hareactive,paldepind/hareactive,paldepind/hareactive | examples/simple/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {EventEmitter} from 'nomatic-events';\nimport {LoggerEntry} from '../logger';\n\nexport interface TransportOptions {\n level?: string;\n [key: string]: any;\n}\n\nexport abstract class Transport extends EventEmitter {\n public... | typescript | edit | 0 | 2 | mit | 7107d2eecf7c96704a0f5361f7a3df23ef3acd29 | bdfoster/nomatic-logging | src/transports/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport patternFromPresets from './patternFromPresets';\n\n/**\n * Resolves difference in length from a string pattern.\n * The string pattern is how the string looks after being commented, where\n * `%s` replaces the string\n * @param {... | typescript | edit | null | null | mit | a824cf00a62b4a8f68667270ec0635abf987eda3 | guywald1/vscode-prismo | src/utils/comments/index.ts | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Component, OnInit, OnChanges, Input} from \"@angular/core\";\nimport {ConfigLoader} from \"../configuration/config-loader\";\nimport {Resource} from \"../model/resource\";\n\n@Component({\n selector: 'fields-view',\n modul... | typescript | edit | 0 | 5 | apache-2.0 | 3ee8a3a64607749c03406fdfab678f941caf05f9 | dainst/idai-components-2,dainst/idai-components-2,dainst/idai-components-2 | src/app/documents/fields-view.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { DependencyList, EffectCallback, useLayoutEffect } from \"react\";\n\n/**\n * Source: https://medium.com/@alexandereardon/uselayouteffect-and-ssr-192986cdcf7a\n */\n\n\nfunction noOpEffect(effect: EffectCallback, deps?: Depende... | typescript | edit | 0 | 1 | apache-2.0 | 93e79bc88e9d21b29d4c988f80640c808ba633f3 | saasquatch/saasquatch-docs,saasquatch/saasquatch-docs,saasquatch/saasquatch-docs | src/util/useBrowserEffect.tsx | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { defaultSettings, Settings as DimApiSettings } from '@destinyitemmanager/dim-api-types';\nimport { defaultLanguage } from 'app/i18n';\n\nexport const enum LoadoutSort {\n ByEditTime,\n ByName,\n}\n\n/**\n * We extend the setti... | typescript | edit | 0 | 0 | mit | b3b3b9d470fecb7461657daa3dc45f2d746af190 | delphiactual/DIM,delphiactual/DIM,DestinyItemManager/DIM,DestinyItemManager/DIM,DestinyItemManager/DIM,delphiactual/DIM,DestinyItemManager/DIM,delphiactual/DIM | src/app/settings/initial-settings.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport { Http, URLSearchParams } from '@angular/http';\n\n@Injectable()\nexport class SoundcloudService {\n public basePath: string = 'https://api.soundcloud.com/tracks';\n private _clientI... | typescript | edit | 0 | 1 | mit | 7d0b51e497b130385527d3de80f2c2dd15335c50 | JavierPDev/SounderProject,JavierPDev/SounderRadio,JavierPDev/SounderRadio,JavierPDev/SounderRadio,JavierPDev/SounderProject,JavierPDev/SounderProject | src/client/app/soundcloud/soundcloud.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, Prop, h } from '@stencil/core';\n\n/**\n * @since 2.0\n * @status stable\n *\n * @slot - A label to show inside the indicator.\n *\n * @part base - The component's base wrapper.\n * @part indicator - The progress bar... | typescript | edit | null | null | mit | 15f0662e77a580c66676f3c73ce2fdd77f856d3b | claviska/shoelace-css,shoelace-style/shoelace,claviska/shoelace-css,shoelace-style/shoelace,shoelace-style/shoelace | src/components/progress-bar/progress-bar.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'\nimport { LinkButton } from '../lib/link-button'\nimport { Dispatcher } from '../../lib/dispatcher'\nimport { updateStore } from '../lib/update-store'\nimport { Octicon, OcticonSymbol } from '../octicons'\... | typescript | edit | null | null | mit | d7a8fa91bf96d8ada70053179ac2100f7101fcf2 | hjobrien/desktop,hjobrien/desktop,desktop/desktop,say25/desktop,desktop/desktop,BugTesterTest/desktops,hjobrien/desktop,kactus-io/kactus,j-f1/forked-desktop,artivilla/desktop,j-f1/forked-desktop,shiftkey/desktop,say25/desktop,BugTesterTest/desktops,BugTesterTest/desktops,artivilla/desktop,say25/desktop,desktop/desktop,... | app/src/ui/updates/update-available.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { color } from \"@artsy/palette\"\nimport React from \"react\"\n\nexport enum Direction {\n LEFT,\n RIGHT,\n}\n\ninterface IconProps {\n /** default is RIGHT */\n direction?: Direction\n\n /** default is black10 */\n fill?:... | typescript | edit | null | null | mit | 1573be8e2f68cf480e2fa55a3fd91a51992ffdb2 | xtina-starr/reaction,artsy/reaction,artsy/reaction-force,artsy/reaction,artsy/reaction,artsy/reaction-force,xtina-starr/reaction,xtina-starr/reaction,xtina-starr/reaction | src/Assets/Icons/ChevronIcon.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport interface UserProvidedSettings {\n createSourceMap?: boolean\n renderUnsafeContent?: boolean\n idPrefix?: string\n ellipsis?: string\n defaultUrlScheme?: string\n baseForUrlsStartingWithSlash?: string\n baseForUrlsStarting... | typescript | edit | 0 | 0 | mit | 8490eadf0cf82226eaafb1c31c0eda818fb5b905 | start/up,start/up | src/UserProvidedSettings.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport axios from 'axios';\nimport { Request, Response } from 'express';\n\ninterface ProxyRequest {\n body: string;\n headers: { [name: string]: string };\n method: string;\n url: string;\n}\n\nexport function proxy(req: Re... | typescript | edit | 0 | 4 | apache-2.0 | 3e6b7cf1a1832e97efa3289653d1db31f92ce743 | projectkudu/WebJobsPortal,projectkudu/AzureFunctions,projectkudu/AzureFunctions,projectkudu/AzureFunctions,projectkudu/AzureFunctions,projectkudu/WebJobsPortal,projectkudu/WebJobsPortal,projectkudu/WebJobsPortal | server/src/actions/proxy.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Logger } from '../core/Logger';\n\nimport * as Knex from 'knex';\nimport { AbstractCommand } from './lib/AbstractCommand';\nimport * as options from './../../knexfile';\n\nconst log = new Logger(__filename);\n\n\n/**\n * Databa... | typescript | edit | 0 | 1 | mit | 36581a6dc0d8e8acfbbf0d34be7b94bf2bd7e7c1 | w3tecch/express-typescript-boilerplate,w3tecch/express-typescript-boilerplate,w3tecch/express-typescript-boilerplate | src/console/DatabaseResetCommand.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { HttpClient, HttpErrorResponse } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\n\n@Injectable()\nexport class BaseService {\n\n constructor(public http: HttpClient) { }\n\n public catchHandler =... | typescript | edit | 0 | 1 | mit | c033d0abc2ef2d03b68575339edd40802fd50875 | Ionaru/EVE-Track,Ionaru/EVE-Track,Ionaru/EVE-Track | client/src/app/data-services/base.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Inject, Injectable } from '@angular/core';\nimport { DOCUMENT } from '@angular/platform-browser';\n\n@Injectable()\nexport class ToggleScrollService {\n /**\n * Setting position fixed on body will prevent scroll, and setting... | typescript | edit | 0 | 4 | mit | ef25f68aa5e9345950a30a3f2933af0f207e8e4a | EvictionLab/eviction-maps,EvictionLab/eviction-maps,EvictionLab/eviction-maps,EvictionLab/eviction-maps | src/app/toggle-scroll.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { withProfiler } from '@sentry/react';\nimport { HTML5Backend } from 'react-dnd-html5-backend';\nimport {\n DndProvider,\n MouseTransition,\n MultiBackendOptions,\n TouchTransition,\n} from 'react-dnd-multi-backend';\nimport ... | typescript | edit | null | null | mit | 293eed39c626eca5843307554836459ed99bb77e | DestinyItemManager/DIM,DestinyItemManager/DIM,DestinyItemManager/DIM,DestinyItemManager/DIM | src/app/Root.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport type PhoneNumber =\n | string\n | {\n national_number: string;\n country_code: string;\n };\n\n// Customer has only two mandatory fields: name and email, rest are optional.\nexport interface Customer {\n url?: str... | typescript | edit | 0 | 0 | mit | bbd620d2a58bf66d089b53b171b39db37ccec8be | opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport | src/customer/types.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nfunction applyToForm(searchForm: HTMLFormElement) {\n function submitForm() {\n searchForm.submit();\n }\n const inputs = searchForm.querySelectorAll('select, input[type=\"date\"]');\n let i;\n for (i = 0; i < inputs.length; i +... | typescript | edit | 0 | 3 | mit | 90610b09eff6efa7bf18b84c9ec5ccc219293990 | fin/froide,stefanw/froide,fin/froide,fin/froide,stefanw/froide,stefanw/froide,fin/froide,stefanw/froide,stefanw/froide | frontend/javascript/snippets/search.ts | rejected_duplicate | Near-duplicate of sample 113928 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { MONGODB_URI, PERIL_WEBHOOK_SECRET, PUBLIC_FACING_API } from \"../globals\"\n\nimport * as Agenda from \"agenda\"\nimport db from \"../db/getDB\"\nimport logger from \"../logger\"\nimport { runTask } from \"./runTask\"\n\nexport... | typescript | edit | 0 | 3 | mit | b4ae6d7bb2ea21e037875b42fbb04932b0120ddf | danger/peril,danger/peril,danger/peril,danger/peril,danger/peril | source/tasks/startTaskScheduler.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from \"react\";\nimport { Map } from \"immutable\";\nimport Answer from \"../../../containers/portal-dashboard/answer\";\nimport { getFormattedStudentName } from \"../../../util/student-utils\";\n\nimport css from \"../../.... | typescript | edit | null | null | mit | b6f8a264c9b3eb6f4f9a1b37e59f750a4a6df49e | concord-consortium/portal-report,concord-consortium/portal-report,concord-consortium/portal-report,concord-consortium/portal-report | js/components/portal-dashboard/all-responses-popup/popup-student-response-list.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {ErrorMessage} from \"./Models/ErrorMessage\";\n\nexport const DEFAULT_ERRORS: ErrorMessage[] = [\n {\n error: 'required',\n format: label => `${label} is required`\n },\n {\n error: 'pattern',\n format: label => `... | typescript | edit | 0 | 1 | mit | be560ac73ca772b8a6184f0364c788311237ce37 | third774/ng-bootstrap-form-validation,third774/ng-bootstrap-form-validation,third774/ng-bootstrap-form-validation | src/default-errors.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nconst { knex } = require('../../util/db');\n\nexport const Sql = {\n updateEnvironment: ({ id, patch }: { id: number, patch: { [key: string]: any } }) =>\n knex('environment')\n .where('id', '=', id)\n .update(patch)\n ... | typescript | edit | 0 | 1 | apache-2.0 | c74e5fb759a7f7bd01bfd4e10af0ea44d87ec131 | amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon | services/api/src/resources/environment/sql.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Intercom from 'intercom-client';\nimport { DatabaseServerSetting } from './databaseSettings';\n\n// Initiate Intercom on the server\nconst intercomTokenSetting = new DatabaseServerSetting<string | null>(\"intercomToken\", null)\n... | typescript | edit | 0 | 3 | mit | b4b7dc9826c0981cedd0182d8b1fcb7f0bad964a | Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2 | packages/lesswrong/server/intercomSetup.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\n\n@Component({\n selector: 'app-root',\n templateUrl: './app.component.html',\n styleUrls: ['./app.component.css']\n})\nexport class AppComponent {\n title = 'app works!';\n}\n\n```\n\nApp... | typescript | edit | 0 | 2 | mit | 2d8cc9d0d173a99f4435696ea805b2925b53fc32 | exequiel09/angular-lecture,exequiel09/angular-lecture,exequiel09/angular-lecture | src/app/app.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { buildSchema } from \"graphql\"\nconst { diff: schemaDiff } = require(\"@graphql-inspector/core\")\nimport fetch from \"node-fetch\"\nimport { warn, danger } from \"danger\"\n\n// If there is a breaking change between the local ... | typescript | edit | 0 | 2 | mit | d81c02dab4357c4efe4ee99fa90f7d344538b3de | artsy/metaphysics,artsy/metaphysics,artsy/metaphysics | peril/compareReactionSchema.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Fix CLI usage to be executable"
},
{
"role": "assistant",
"content": "#! /usr/bin/env node\n\nimport Shuffler from \"./shuffler\";\n\nnew Shuffler().run();\n"
}
] | typescript | new_file | 0 | 0 | mit | 89df763147d2a9e2de711ef807cc2a03a4a62e64 | nickp10/shuffler,nickp10/shuffler | src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport type something = boolean|number|string|object\n\nexport const isArray = (x: any): x is Array<any> => Array.isArray(x)\nexport const isString = (x: any): x is string => typeof x === \"string\"\nexport const isNum = (x: any): x is ... | typescript | edit | 0 | 2 | mit | d8cad41e06aed8a79c708cd6067a8b57e5146387 | bjoyx/power-belt,bjoyx/power-belt,bjoyx/power-belt | src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { git, envForAuthentication, expectedAuthenticationErrors } from './core'\nimport { Repository } from '../../models/repository'\nimport { User } from '../../models/user'\n\n/** Fetch from the given remote. */\nexport async functi... | typescript | edit | 0 | 2 | mit | 50a508514f94b0de2c09026aabd3dedfbe3fd94a | BugTesterTest/desktops,artivilla/desktop,desktop/desktop,say25/desktop,artivilla/desktop,artivilla/desktop,shiftkey/desktop,hjobrien/desktop,j-f1/forked-desktop,BugTesterTest/desktops,gengjiawen/desktop,shiftkey/desktop,shiftkey/desktop,shiftkey/desktop,j-f1/forked-desktop,j-f1/forked-desktop,gengjiawen/desktop,artivil... | app/src/lib/git/fetch.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// import 'core-js'; (npm i -D core-js)\n\nexport * from './class-decorators';\nexport * from './method-decorators';\nexport * from './parameter-decorators';\nexport * from './property-decorators';\n\n```\n\nApply this change: Comment e... | typescript | edit | 0 | 0 | mit | a16e761a644071a05f98b87c992be49856894fe4 | semagarcia/typescript-decorators,semagarcia/typescript-decorators | src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react';\n\ninterface IProps {\n stream: string;\n userState: any; // todo\n onChange: any;\n}\n\nclass PlayerAudio extends React.Component<IProps> {\n private audioEl: any;\n\n componentWillUpdate(nextProps: IPro... | typescript | edit | null | null | mit | b74a4beb3e682a4e9bd69595a7293430bc1186d5 | urfonline/frontend,urfonline/frontend,urfonline/frontend | src/components/PlayerAudio.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as webpack from 'webpack'\n\nimport * as Options from 'webpack/models/Options'\n\nexport const partial = (c: Options.Interface): webpack.Configuration => ({\n plugins: [\n // Ignore all files on the frontend.\n new webpa... | typescript | edit | 0 | 1 | mit | c9c7e8c7b19e0a8d73cd61beb9169d270913b102 | devonzuegel/clarity,devonzuegel/clarity,devonzuegel/clarity,devonzuegel/clarity | webpack/server/partials/plugins.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Dummy module for getting environment setup.\nclass MyWorker {\n public hello() {\n return 'hello';\n }\n}\n\n// The technique below allows code to work both in-browser and in Node.\nif(typeof module !== 'undefined' && ty... | typescript | edit | 0 | 1 | apache-2.0 | 6583ce26dcd12605c8427966153fcf93194696f6 | tavultesoft/keymanweb,tavultesoft/keymanweb | common/predictive-text/worker/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { TextEditor } from \"atom\";\nimport { action } from \"mobx\";\nimport OutputStore from \"./output\";\nimport { log } from \"./../utils\";\nimport type Kernel from \"./../kernel\";\nexport default class WatchStore {\n kernel: K... | typescript | edit | 0 | 3 | mit | c0a9f545d32b688c4e49aed649eebc8a804b4518 | nteract/hydrogen,nteract/hydrogen | lib/store/watch.ts | rejected_duplicate | Near-duplicate of sample 114772 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nmodule Base {\n export function randomString(length: number, chars: string) {\n var result = '';\n for (var i = length; i > 0; --i) {\n result += chars[Math.round(Math.random() * (chars.length - 1))];\n }\n return resu... | typescript | edit | 0 | 3 | mit | 88aff2cad6a42ef0ce64bead55216c262ac4efb9 | ryankaplan/pattern-based-ot,ryankaplan/pattern-based-ot,ryankaplan/pattern-based-ot | src/base/lang.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// This simplified polyfill attempts to follow the ECMAScript Observable proposal.\n// See https://github.com/zenparsing/es-observable\nimport { Observable as LinkObservable } from 'apollo-link';\n\nexport type Subscription = ZenObserva... | typescript | edit | 0 | 1 | mit | fa3954495a077999121763ae55bb925aa27ea044 | apollographql/apollo-client,apollostack/apollo-client,apollostack/apollo-client,apollostack/apollo-client,apollographql/apollo-client | packages/apollo-client/src/util/Observable.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { trigger, state, transition, animate, style } from '@angular/animations';\n\nexport let slideAnimation = trigger('slide', [\n\n // state('left', style({ transform: 'translateX(0)' })),\n // state('right', style({ transform... | typescript | edit | 0 | 0 | mit | c893ea19ba5e6f62db95478e5b615d65f9b399a0 | emc-mongoose/console,emc-mongoose/console,emc-mongoose/console | src/app/core/animations.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport ansiEscape from 'ansi-escapes';\nimport { stderr } from '../logging';\n\nconst SHOW_ALTERNATE_SCREEN = '\\u001B[?1049h';\nconst HIDE_ALTERNATE_SCREEN = '\\u001B[?1049l';\n\nexport default function alternateScreen (enabled: boolea... | typescript | edit | 0 | 2 | mit | aed954e4e6e8beabd47268916ff0955fbb20682d | corneliusweig/rollup | bin/src/run/alternateScreen.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/*\n * Squidex Headless CMS\n *\n * @license\n * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.\n */\n\n// tslint:disable: readonly-array\n\nimport { ChangeDetectionStrategy, Component, Input, OnChanges, OnDestroy }... | typescript | edit | 0 | 2 | mit | 29ce204f305f33dcedf6ab87ae37da8eb981a00b | Squidex/squidex,Squidex/squidex,Squidex/squidex,Squidex/squidex,Squidex/squidex | frontend/app/framework/angular/title.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport class CPU {\n\n registers: number[] = new Array(16).fill(0);\n I = 0;\n\n get V0() { return this.registers[0x0]; }\n get V1() { return this.registers[0x1]; }\n get V2() { return this.registers[0x2]; }\n get V3()... | typescript | edit | 0 | 1 | unlicense | 58942d704d0794fbf2221f73e53d9cf5a79e5adc | cybrown/chip8,cybrown/chip8 | src/main/cpu.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path=\"fourslash.ts\" />\r\n\r\n/////**/\r\n\r\n// Bug 768028\r\n// FourSlash.currentTestState.enableIncrementalUpdateValidation = false;\r\nedit.replace(0,0,\"function foo(bar) {\\n b\\n}\\n\");\r\ngoTo.position(27);\... | typescript | edit | 0 | 1 | apache-2.0 | b5ffe6fef6bad333cbe7e3e08af7c3ea01ad292a | popravich/typescript,mbebenita/shumway.ts,fdecampredon/jsx-typescript-old-version,fdecampredon/jsx-typescript-old-version,hippich/typescript,hippich/typescript,hippich/typescript,mbebenita/shumway.ts,popravich/typescript,popravich/typescript,fdecampredon/jsx-typescript-old-version,mbebenita/shumway.ts | tests/cases/fourslash/callOrderDependence.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 | 0 | 1 | mit | 7958f45d24461ea0ded4e87a5d3a0b5509b2681b | RenovoSolutions/TypeScript-Angular-Utilities,SamGraber/TypeScript-Angular-Utilities,RenovoSolutions/TypeScript-Angular-Utilities,SamGraber/TypeScript-Angular-Utilities | source/services/timezone/timezone.service.tests.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Grid, Row, Column, Diagonal } from '../definitions';\n\nexport function getRows(grid: Grid): Row[] {\n const length = Math.sqrt(grid.length);\n const copy = grid.concat([]);\n return getArray(length).map(() => copy.splice(0,... | typescript | edit | 0 | 1 | mit | cb700d0bf01a426c261f9cb873230cb7502ca5ee | artfuldev/tictactoe-ai,artfuldev/tictactoe-ai | src/utils/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport pDefer = require('p-defer');\n\nfunction delay(deferred: pDefer.DeferredPromise<string>, ms: number) {\n setTimeout(deferred.resolve, ms, '🦄');\n return deferred.promise;\n}\n\nlet s: string;\nasync function f() { s = awa... | typescript | edit | 0 | 1 | mit | 424dc0ec03c79e978b8f4bbd192f16ab0bd69236 | magny/DefinitelyTyped,AgentME/DefinitelyTyped,georgemarshall/DefinitelyTyped,AgentME/DefinitelyTyped,magny/DefinitelyTyped,AgentME/DefinitelyTyped,georgemarshall/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/DefinitelyTyped,borisyankov/DefinitelyTyped,dsebastien/DefinitelyTyped,georgemarshall/DefinitelyTyp... | types/p-defer/p-defer-tests.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport runJest from '../__helpers__/runJest';\n\ndescribe('synthetic default imports', () => {\n it('should not work when the compiler option is false', () => {\n const result = runJest('../no-synthetic-default', ['--no-cache']);\n\... | typescript | edit | 0 | 1 | mit | d5c48ee05303f9b3759ea8665d78a2132a50894f | kulshekhar/ts-jest,kulshekhar/ts-jest | tests/__tests__/synthetic-default-imports.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {SupertypeSession, SupertypeLogger} from 'supertype';\nimport {Persistor} from 'Persistor';\ntype Constructable<BC> = new (...args: any[]) => BC;\n\nexport class AmorphicSession extends SupertypeSession {\n connectSession : an... | typescript | edit | 0 | 1 | mit | c541c4fae74193cf66f64ab148cf69824b487f9e | selsamman/amorphic,hackerrdave/amorphic,selsamman/amorphic,hackerrdave/amorphic,selsamman/amorphic,hackerrdave/amorphic,hackerrdave/amorphic,selsamman/amorphic | lib/utils/remoteable.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { ChangeVolume, ToggleAudioEnabled } from '../actions/audio';\r\nimport { AudioSettings } from '../types';\r\nimport { CHANGE_VOLUME, TOGGLE_AUDIO_ENABLED } from '../constants';\r\n\r\nconst initial: AudioSettings = {\r\n enable... | typescript | edit | 0 | 3 | mit | 8f54f5ec16948dbc1e176a6217b50504889e1593 | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | src/reducers/audioSettings.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\n\nexport\nnamespace Settings {\n\n}\n\n```\n\nApply this change: Create `SettingService` with `fetch` and `save` methods."
},
... | typescript | edit | 0 | 3 | bsd-3-clause | cf2de4bb4b800ef707c7e0f4c47317fc53a7eea4 | jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab | packages/services/src/settings/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { PastCommitNode } from \"./PastCommitNode\";\n\nimport { SingleCommitInfo, GitBranchResult } from \"../git\";\n\nimport {\n historySideBarStyle,\n} from \"../componentsStyle/HistorySideBarStyle\";\n\n\nimport * as React from \"... | typescript | edit | null | null | bsd-3-clause | aca3de76affa8babd77f81a1f4858b8181a2f87f | jupyterlab/jupyterlab-git,jupyterlab/jupyterlab-git,jupyterlab/jupyterlab-git | src/components/HistorySideBar.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport type MenuIDs =\n 'rename-branch' |\n 'delete-branch' |\n 'check-for-updates' |\n 'checking-for-updates' |\n 'downloading-update' |\n 'quit-and-install-update' |\n 'preferences' |\n 'update-branch' |\n 'merge-branch' |\n ... | typescript | edit | 0 | 0 | mit | 025bbf37c6c2ebf1539e828ccf241ea746a7bf5a | shiftkey/desktop,say25/desktop,kactus-io/kactus,hjobrien/desktop,say25/desktop,j-f1/forked-desktop,hjobrien/desktop,gengjiawen/desktop,shiftkey/desktop,hjobrien/desktop,shiftkey/desktop,desktop/desktop,gengjiawen/desktop,gengjiawen/desktop,desktop/desktop,BugTesterTest/desktops,BugTesterTest/desktops,say25/desktop,shif... | app/src/main-process/menu/menu-ids.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport PouchDB from 'pouchdb';\nimport { Injectable } from \"@angular/core\";\n\n// Manages to connection to local and remote databases,\n// creates per-user databases if needed.\n\n@Injectable()\nexport class DbConnectionService {\n p... | typescript | edit | 0 | 1 | apache-2.0 | 47d9cc85bd2176782fa7b450cb5cf03d645d9c31 | sth-larp/deus-mobile,sth-larp/deus-mobile,sth-larp/deus-mobile,sth-larp/deus-mobile,sth-larp/deus-mobile | src/services/db-connection.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport flowRight from 'lodash-es/flowRight'\nimport {connect} from 'react-redux'\nimport {firebaseConnect} from 'react-redux-firebase'\nimport {LogEntry} from './log-entry'\nimport {momentedLogsSelector} ... | typescript | edit | null | null | mit | 9f555d1c445f26a43ac69e2b8ac58633b0a22bf7 | jsse-2017-ph23/web-frontend,jsse-2017-ph23/web-frontend,jsse-2017-ph23/web-frontend | src/components/log/index.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React, { useEffect } from 'react';\nimport ContentContainer from '@/components/elements/ContentContainer';\nimport { CSSTransition } from 'react-transition-group';\nimport tw from 'twin.macro';\nimport FlashMessageRender from '@/... | typescript | edit | null | null | mit | f2e92d80aca5c3dfa13841cd03390edaeacaef45 | Pterodactyl/Panel,Pterodactyl/Panel,Pterodactyl/Panel,Pterodactyl/Panel | resources/scripts/components/elements/PageContentBlock.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport styled from 'styled-components';\nimport { connect } from 'react-redux';\nimport { createStructuredSelector } from 'reselect';\n\nimport { EdamamHit } from '../types/edamam';\nimport { allRecipes } fro... | typescript | edit | null | null | mit | 3f704c2c9736cc5b1cd8f18ade2d87cd52a6387b | mbchoa/recipeek,mbchoa/recipeek,mbchoa/recipeek | src/components/SearchResults.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path='../../interfaces/ui-polymer.d.ts' />\n\nPolymer({\n model: model,\n onlineTrustedUproxyContacts: model.contacts.onlineTrustedUproxy,\n offlineTrustedUproxyContacts: model.contacts.offlineTrustedUproxy,\n onlineU... | typescript | edit | 0 | 1 | apache-2.0 | 639af73bb73b12c7c52b99b0c5b5666b09fbc1ee | roceys/uproxy,jpevarnek/uproxy,jpevarnek/uproxy,roceys/uproxy,chinarustin/uproxy,MinFu/uproxy,jpevarnek/uproxy,dhkong88/uproxy,dhkong88/uproxy,itplanes/uproxy,qida/uproxy,uProxy/uproxy,roceys/uproxy,IveWong/uproxy,IveWong/uproxy,uProxy/uproxy,dhkong88/uproxy,chinarustin/uproxy,qida/uproxy,MinFu/uproxy,MinFu/uproxy,itpl... | src/generic_ui/polymer/roster.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { NgModule } from '@angular/core';\nimport { Routes, RouterModule } from '@angular/router';\nimport { CreateSnippetComponent } from './create-snippet/create-snippet.component';\nimport { AngularThirtySecondsComponent } from './an... | typescript | edit | 0 | 0 | apache-2.0 | 00b19d9516cf49549601234c959c2846bc1aec65 | nycJSorg/angular-presentation,nycJSorg/angular-presentation,nycJSorg/angular-presentation | apps/angular-thirty-seconds/src/app/angular-thirty-seconds/angular-thirty-seconds-routing.module.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\ntry {\n // tslint:disable-next-line\n const modules = require('.').default;\n modules.triggerOnAppCreate();\n} catch (e) {\n if (typeof ErrorUtils !== 'undefined') {\n (ErrorUtils as any).reportFatalError(e);\n } else {\n con... | typescript | edit | 0 | 0 | mit | c93770a6c1779af44b9786688b88688836b4f941 | sysgears/apollo-universal-starter-kit,sysgears/apollo-fullstack-starter-kit,sysgears/apollo-universal-starter-kit,sysgears/apollo-universal-starter-kit,sysgears/apollo-universal-starter-kit | packages/mobile/src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { ENABLE_DEBUG_MODE } from '../../config/config'\nimport { log } from '../../lib/logger'\n\n/**\n * Create an array of all sources in the room and update job entries where\n * available. This should ensure that each room has 1 ha... | typescript | edit | 0 | 3 | mit | 9c38e9c0c66fe371fcabe419569f0d23511793cb | resir014/screeps,resir014/screeps | src/components/sources/sourceManager.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as requestPromise from 'request-promise-native';\nimport { Config, Request, TaxjarError } from '../util/types';\n\nconst proxyError = (result): never => {\n throw new TaxjarError(\n result.error.error,\n result.error.det... | typescript | edit | 0 | 5 | mit | d4c16858ce0ef2c22f084eecd2f142d9864ac8dd | taxjar/taxjar-node,taxjar/taxjar-node | lib/util/request.ts | rejected_duplicate | Near-duplicate of sample 114093 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { AppBackdrop } from './backdrop';\n\nexport class Backdrop\n{\n\tprivate static backdrops: AppBackdrop[] = [];\n\n\tstatic push()\n\t{\n\t\tconst el = document.createElement( 'div' );\n\t\tdocument.body.appendChild( el );\n\n\t\... | typescript | edit | 0 | 2 | mit | 75566f709d6c6b7ba9a2098fe36a8ef90d5a9bc1 | 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 {Component, EventEmitter, Input, Output} from 'angular2/core';\n\nimport {SelectableOption} from './soapy.interfaces';\nimport * as util from './soapy.utils';\n\n\n@Component({\n selector: 'soapy-dropdown',\n templateUrl: '/app... | typescript | edit | 0 | 2 | mit | 56e5c10c538645b6d03d2e002de25d93cba3dbc1 | dag10/Soapy,dag10/Soapy,dag10/Soapy,dag10/Soapy,dag10/Soapy | Web/typescript/dropdown.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Injectable, ErrorHandler} from '@angular/core';\nimport {Response} from \"@angular/http\";\nimport {Observable} from \"rxjs\";\n\n@Injectable()\nexport class ErrorHandlerService implements ErrorHandler {\n\n constructor() { }\n... | typescript | edit | 0 | 4 | mit | 4cb96edfec89f243aea063bb09ebdfb8b173fc3c | chipster/chipster-web,chipster/chipster-web,chipster/chipster-web | src/app/core/errorhandler/error-handler.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Routes, RouterModule } from '@angular/router';\n\nimport { HomepageComponent } from './homepage/homepage.component';\nimport { LoginComponent } from './profile/login/login.component';\nimport { SignUpComponent } from './profile... | typescript | edit | 0 | 0 | apache-2.0 | b6b463f7043dac15a427952be76c2890cb5b844c | SamuelM333/snippet-sniper-frontend,SamuelM333/snippet-sniper-frontend,SamuelM333/snippet-sniper-frontend | src/app/app.routing.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 | 4 | mit | e906151751e424e7727c32b148b03c11ce21760c | OmniSharp/omnisharp-vscode,OmniSharp/omnisharp-vscode,OmniSharp/omnisharp-vscode,OmniSharp/omnisharp-vscode,OmniSharp/omnisharp-vscode | src/features/structureProvider.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/Observable';\nimport 'rxjs/add/operator/map';\n\n@Injectable()\nexport class FormService {\n\tprivate phenotypesUrl = '... | typescript | edit | 0 | 1 | mit | 5f95bbc927f1161dfef3481ead5f6098fe60f0f7 | Ftujio/gen,Ftujio/gen,Ftujio/gen | src/app/services/form.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { git } from '.'\nimport { Repository } from '../../models/repository'\n\nexport interface IStashEntry {\n /** The name of the branch at the time the entry was created. */\n readonly branchName: string\n\n /** The SHA of the c... | typescript | edit | 0 | 4 | mit | 5243995bc376e93b606633469d52cf81a33131b2 | desktop/desktop,say25/desktop,say25/desktop,kactus-io/kactus,kactus-io/kactus,j-f1/forked-desktop,kactus-io/kactus,artivilla/desktop,j-f1/forked-desktop,shiftkey/desktop,desktop/desktop,desktop/desktop,say25/desktop,kactus-io/kactus,j-f1/forked-desktop,shiftkey/desktop,artivilla/desktop,artivilla/desktop,say25/desktop,... | app/src/lib/git/stash.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport * from './atom';\nimport './boolean-funcs';\nexport * from './constant';\nexport * from './derivable';\nexport * from './derivation';\nexport * from './lens';\nexport * from './unpack';\n\n// Extend the Derivable interface with t... | typescript | edit | 0 | 0 | apache-2.0 | da6a8db53cfafe06ffae3172d7b4105e717b6a32 | politie/sherlock,politie/sherlock,politie/sherlock,politie/sherlock | src/derivable/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport { shell } from 'electron'\nimport * as classNames from 'classnames'\n\ninterface ILinkButtonProps extends React.HTMLProps<HTMLAnchorElement> {\n /** A URI to open on click. */\n readonly uri?: st... | typescript | edit | null | null | mit | 4bcab210d76348597e3df88f6d736c30b4225a1a | j-f1/forked-desktop,say25/desktop,desktop/desktop,shiftkey/desktop,gengjiawen/desktop,artivilla/desktop,hjobrien/desktop,gengjiawen/desktop,artivilla/desktop,shiftkey/desktop,desktop/desktop,hjobrien/desktop,shiftkey/desktop,kactus-io/kactus,say25/desktop,gengjiawen/desktop,kactus-io/kactus,desktop/desktop,artivilla/de... | app/src/ui/lib/link-button.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { DatabaseServerSetting } from '../databaseSettings';\nimport type { RenderedEmail } from './renderEmail';\nimport nodemailer from 'nodemailer';\n\nexport const mailUrlSetting = new DatabaseServerSetting<string | null>('mailUrl',... | typescript | edit | 0 | 3 | mit | 112fe2d34fba89eaa9f6c08fd48293d76c502c16 | Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2 | packages/lesswrong/server/emails/sendEmail.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { message, PLAYER_EXIT_FULLSCREEN, HANDSHAKE } from \"../../../../communication/actions\";\nimport { initActions } from \"./events\";\nimport { sendOkResponse } from \"./messaging\";\nconst noop = () => { }\n\nexport const addMes... | typescript | edit | 0 | 2 | mit | ad2257e4a309b135e481f77dc820b0363eda42a4 | wdelmas/remote-potato,wdelmas/remote-potato,wdelmas/remote-potato | src/clients/extensions/injected/modules/browser.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {\n buildIncludePaths,\n resolveUrl,\n} from 'node-sass-magic-importer/dist/toolbox';\n\nconst EMPTY_IMPORT = {\n file: ``,\n contents: ``,\n};\n\nexport = function onceImporter() {\n const contextTemplate = {\n store: ne... | typescript | edit | 0 | 3 | mit | aa016fbe16318900ffe6019e550a526fb3c44e84 | maoberlehner/node-sass-magic-importer,maoberlehner/node-sass-magic-importer,maoberlehner/node-sass-magic-importer | packages/node-sass-once-importer/src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport { Component } from 'react'\n\nimport { TodoModel } from './TodoModel'\nimport { TodoList } from './TodoList'\n\ninterface Props {\n deleteTodo: (todo: TodoModel) => void\n todos: Array<TodoModel>... | typescript | edit | null | null | unlicense | 29946f324ae128941c0c8354de6b2642b1f6054d | janaagaard75/framework-investigations,janaagaard75/framework-investigations,janaagaard75/framework-investigations,janaagaard75/framework-investigations | todomvc-react-mobx-typescript/src/components/Main.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, OnInit} from '@angular/core';\nimport { DocService } from '../doc.service';\nimport { PolarisComponent } from '../doc.data';\n\nexport abstract class ComponentComponent {\n\n public component: PolarisComponent;\n ... | typescript | edit | 0 | 2 | mit | 88a5a50752e2e72579ca65c82939efbb2eccdb84 | syrp-nz/angular-polaris,syrp-nz/angular-polaris,syrp-nz/angular-polaris | src/app/doc/utilities/component.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as Phaser from 'phaser-ce'\n\n/**\n * Sets to skip Phaser internal type checking\n * Workaround until https://github.com/photonstorm/phaser-ce/issues/317 is resolved\n */\nexport const skipBuiltinTypeChecks = (): void => {\n ... | typescript | edit | 0 | 4 | unlicense | d2e062d16e03cd085d5055efda83381fbec21298 | codingInSpace/CoffeeConundrum,codingInSpace/CoffeeConundrum,codingInSpace/CoffeeConundrum,codingInSpace/CoffeeConundrum | src/utils/gamehelpers.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport clearModule from 'clear-module'\nimport type { Middleware } from 'koa'\nimport type { Logger } from '../interfaces'\n\n\n/**\n * @param filePath - path to load file\n * @param logger\n * @returns\n * return loaded... | typescript | edit | 0 | 7 | mit | c6defcf1160f98136ac720e36f0c02236d58f313 | whitetrefoil/mock-server-middleware,whitetrefoil/mock-server-middleware | src/definition/load-js.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference types=\"knockout\" />\n\nimport ko = require(\"knockout\");\nimport { TableSlider } from \"../../../table/tableSlider\";\n\nexport class RaiseBlockComponent {\n private tableSlider: TableSlider;\n\n constructor(para... | typescript | edit | 0 | 3 | apache-2.0 | 22f865726a758bfee084fc275d77126f80e52378 | online-poker/poker-html-client,online-poker/poker-html-client,online-poker/poker-html-client | js/components/table/raiseBlock/raiseBlock.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Symbols from './Symbols';\n\nclass CommandLine {\n public write(results: ResultInterface[], level: number = 0): void {\n results.forEach((result) => {\n this.print(result.getTitle(), result.getStatus(), level);\n co... | typescript | edit | 0 | 5 | mit | 782f4cf8646ee4aa3382b4176ff7ffe2884c6e0a | juffalow/pentest-tool-lite,juffalow/pentest-tool-lite | src/report/CommandLine.ts | accepted | null | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.