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\nexport interface IAuthService {\n isLoggedIn();\n}\n\nexport class AuthService {\n static NAME = 'AuthService';\n\n constructor(\n private $http: ng.IHttpService,\n private $window: ng.IWindowService\n ) {\n 'ngInject';\n ... | typescript | edit | 0 | 1 | mit | 5a7bb894e1a132e01ce63f75d7f6ac04eb46c2d1 | ibnumalik/ibnumalik.github.io,ibnumalik/ibnumalik.github.io,ibnumalik/ibnumalik.github.io | resources/app/auth/services/auth.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nconst _addition = (a, b) => {\n return a + b;\n};\n\nconst _subtraction = (a, b) => {\n return a - b;\n};\n\nconst _multiplication = (a, b) => {\n return a * b;\n};\n\nexport const sum = array => {\n return array.reduce(_addition, 0... | typescript | edit | 0 | 2 | mit | acb50bc698508d46198440c85380493d7ddd6064 | adorableio/avatars-api | src/lib/hashingFunctions.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport * as Col from 'react-bootstrap/lib/Col';\nimport * as Row from 'react-bootstrap/lib/Row';\n\nimport { OfferingTabsComponent, OfferingTab } from '@waldur/marketplace/details/OfferingTabsComponent';... | typescript | edit | null | null | mit | f8dc4ba86d47320282c62e6e12a07a0ad60e42d5 | opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport | src/marketplace/offerings/details/OfferingDetails.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as Faker from 'faker';\nimport { ObjectType } from 'typeorm';\nimport { EntityFactoryInterface } from './EntityFactoryInterface';\n/**\n * This interface is used to define new entity faker factories or to get such a\n * entity ... | typescript | edit | 0 | 0 | mit | 6b3d6c983b77eaaeb978b93ec12f0791cf8bfebf | w3tecch/express-typescript-boilerplate,w3tecch/express-typescript-boilerplate,w3tecch/express-typescript-boilerplate | src/lib/seeds/FactoryInterface.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { spawn } from 'child_process'\nimport * as Path from 'path'\n\nexport function isGitOnPath(): Promise<boolean> {\n // Modern versions of macOS ship with a Git shim that guides you through\n // the process of setting everything... | typescript | edit | 0 | 4 | mit | 1123057da3728015853bb8ac859e296575bc4ef7 | shiftkey/desktop,kactus-io/kactus,desktop/desktop,desktop/desktop,j-f1/forked-desktop,kactus-io/kactus,artivilla/desktop,j-f1/forked-desktop,say25/desktop,say25/desktop,j-f1/forked-desktop,artivilla/desktop,artivilla/desktop,j-f1/forked-desktop,say25/desktop,desktop/desktop,shiftkey/desktop,kactus-io/kactus,shiftkey/de... | app/src/lib/is-git-on-path.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Observable, ApolloLink, execute } from 'apollo-link';\nimport gql from 'graphql-tag';\nimport * as fetchMock from 'fetch-mock';\n\nimport {\n parseAndCheckHttpResponse,\n selectHttpOptionsAndBody,\n selectURI,\n serializeFe... | typescript | edit | 0 | 1 | mit | 274a23a6e6860c7195b64629efda576237dded79 | apollographql/apollo-link,apollographql/apollo-link | packages/apollo-link-utilities/src/__tests__/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Injectable} from '@angular/core';\nimport {Observable, of} from 'rxjs';\nimport {Polygon} from '../app/models/Polygon';\nimport {EnvironmentService} from '../app/services/environment';\n\n@Injectable()\nexport class EnvironmentS... | typescript | edit | 0 | 0 | apache-2.0 | 2dd9ae5ff2b232272fc6c8de72aa2a5d28ddf145 | googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020 | step-release-vis/src/testing/EnvironmentServiceStub.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as Url from 'url'\nimport { shell } from 'electron'\n\n/**\n * Wraps the inbuilt shell.openItem path to address a focus issue that affects macOS.\n *\n * When opening a folder in Finder, the window will appear behind the applic... | typescript | edit | 0 | 3 | mit | 6e1352568f2e9a88d4947b9dd94e5ff63f3fd3a7 | j-f1/forked-desktop,artivilla/desktop,desktop/desktop,say25/desktop,artivilla/desktop,shiftkey/desktop,shiftkey/desktop,shiftkey/desktop,desktop/desktop,shiftkey/desktop,j-f1/forked-desktop,desktop/desktop,j-f1/forked-desktop,say25/desktop,j-f1/forked-desktop,kactus-io/kactus,desktop/desktop,kactus-io/kactus,artivilla/... | app/src/main-process/shell.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\n\n@Injectable()\nexport class ViewManagerService {\n\n public screen: { width: number, height: number } = {\n width: 0,\n height: 0,\n };\n\n public offset: { x: number, y: number } ... | typescript | edit | 0 | 7 | mit | 753c762f7837e2a924e16a7ef9020c417327b920 | tsugitta/tsugitta.github.io,tsugitta/tsugitta.github.io,tsugitta/tsugitta.github.io,tsugitta/tsugitta.github.io | src/app/manager/view-manager.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nimport {FlexColumn, sty... | typescript | edit | null | null | mit | ac4e1ce71b5c2aadf86e75ebf60402cd8d6001fb | facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper | src/chrome/settings/ToggledSection.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n'use strict';\n\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\nimport { spawn, ChildProcess } from 'ch... | typescript | edit | 0 | 3 | mit | d9714ebf8f481bd6a219d31cbb031508f4c58dbd | Jusonex/MTATD,Jusonex/MTATD,Jusonex/MTATD | VSCode_Extension/src/extension.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { ipcMain } from 'electron';\r\nimport { existsSync, readFileSync, writeFileSync } from 'fs';\r\n\r\nimport { Utilities } from '../Utilities';\r\n\r\nexport class Settings {\r\n private settings: object;\r\n private filePath: s... | typescript | edit | 0 | 2 | mit | ce41c989fc39e5eac6eba67f1b221f5b1c862b57 | etaylor8086/prime-randomizer-web,etaylor8086/prime-randomizer-web,etaylor8086/prime-randomizer-web,etaylor8086/prime-randomizer-web,etaylor8086/prime-randomizer-web | common/settings/Settings.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React, {PureComponent} from 'react'\nimport DivisionMenu, {\n MenuItem,\n} from 'src/shared/components/threesizer/DivisionMenu'\n\ninterface Props {\n onMinimize: () => void\n onMaximize: () => void\n buttons: JSX.Element[]\n... | typescript | edit | null | null | mit | 7ec143e90e11aaa5146e1eeff95d97d3e4dff1ab | influxdb/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,influxdata/influxdb,nooproblem/influxdb,li-ang/influxdb,mark-rushakoff/influxdb,influxdata/influxdb,li-ang/influxdb,influxdb/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,nooproblem... | ui/src/shared/components/threesizer/DivisionHeader.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { createHandlerOptionDecorator } from '../metadata/HandlerOptionMetadata';\n\nexport const PrioritizedOverUnhandled = (prioritizedOverUnhandled = true) =>\n createHandlerOptionDecorator({ prioritizedOverUnhandled });\n\n```\n\nA... | typescript | edit | 0 | 1 | apache-2.0 | 0996bd3a20bfa8b7a2ccc74c526ecfd629070d49 | jovotech/jovo-framework-nodejs,jovotech/jovo-framework-nodejs | framework/src/decorators/PrioritizedOverUnhandled.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport function invariant(condition: boolean, message: string, context?: any) {\n if (!condition) {\n let errorMessage = message;\n\n if (context) {\n errorMessage = (message.indexOf('%s') != -1) ?\n message.replace('... | typescript | edit | 0 | 4 | mit | f543a299fccb218b585070b4acfe33ad38b1db59 | angular-redux/store,wbuchwalter/ng2-redux,angular-redux/ng2-redux,angular-redux/store,angular-redux/ng2-redux | src/utils/invariant.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Toast } from '@syncfusion/ej2-angular-notifications';\n\nimport { ToastService } from './toast.service';\n\ndescribe('ToastService', () => {\n let service: ToastService;\n\n beforeEach(() => {\n service = new ToastService(... | typescript | edit | 0 | 1 | apache-2.0 | 5b4e2c13f8199e6d1eead37c8712b27588d5e38d | googleinterns/step263-2020,googleinterns/step263-2020,googleinterns/step263-2020,googleinterns/step263-2020 | capstone-project/src/main/angular-webapp/src/app/toast/toast.service.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { AttributeTypes, CodeMapNode, Edge, MarkedPackage, RecursivePartial, Settings } from \"./codeCharta.model\"\n\nexport interface ExportCCFile {\n\tprojectName: string\n\tapiVersion: string\n\tnodes: CodeMapNode[]\n\tattributeType... | typescript | edit | 0 | 0 | bsd-3-clause | 017034401ff456f34243011451be3c4f24b25741 | MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta | visualization/app/codeCharta/codeCharta.api.model.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Template, TemplateBuilder} from './Template'\nimport {Schema, SchemaType, getDefaultSchema} from './parts/Schema'\n\nfunction defaultTemplateForType(\n schemaType: string | SchemaType,\n sanitySchema?: Schema\n): TemplateBuild... | typescript | edit | 0 | 5 | mit | f6853c9f20062b7c263c6812a76934ab0e7794e7 | sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity | packages/@sanity/initial-value-templates/src/builder.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Widget } from './widget';\n\nexport interface MyObject {\n name: string;\n\n mainWidget: Widget;\n otherWidgets: Widget[];\n}\n\n```\n\nApply this change: Fix test \"force-type-imported\" lint error"
},
{
"role... | typescript | edit | 0 | 0 | bsd-3-clause | 9be1e387e162f18196dcfc0dbea5da2d90b18ed8 | YousefED/typescript-json-schema,YousefED/typescript-json-schema,HitkoDev/typescript-json-schema,HitkoDev/typescript-json-schema,benbabic/typescript-json-schema,benbabic/typescript-json-schema | test/programs/force-type-imported/main.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * This file is the entry-point to start Cerveau\n */\nprocess.title = \"Cerveau Game Server\";\n\n// Check for npm install first, as many developers forget this pre step\nimport { lstatSync } from \"fs\";\n\ntry {\n const lstat... | typescript | edit | 0 | 0 | mit | 80f42ed3bac03d619f0290b1ed88a3733c8d797b | siggame/Cerveau,siggame/Cerveau,JacobFischer/Cerveau,JacobFischer/Cerveau | src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/*\nCopyright 2020 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n h... | typescript | edit | 0 | 5 | apache-2.0 | 5a43acd42a1bc570611634b1e9c14abc35bb94d5 | matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk | src/stores/room-list/previews/ReactionEventPreview.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport { WrappedFieldMetaProps } from 'redux-form';\n\nimport { FieldError } from './FieldError';\nimport { FormField } from './types';\n\ninterface FormGroupProps extends FormField {\n meta: WrappedFie... | typescript | edit | null | null | mit | bde150fbe877b977600aa8a9dd9ad6bc4373e807 | opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport | app/scripts/components/form-react/FormGroup.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { render } from 'inferno'\nimport App from './components/app.ts'\n\nconst container = document.getElementById('app')\n\nconst app = new App()\n\nrender(app.render(), container)\n\n```\n\nApply this change: Change the way of rende... | typescript | edit | 0 | 0 | mit | 4cdfe3976b38d985d4af86848124f4e58adca18a | y0za/typescript-inferno-todo,y0za/typescript-inferno-todo,y0za/typescript-inferno-todo | src/index.ts | accepted | null | true |
[
{
"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 | e0f837ca87aac19f1cd43f274c18bae11a3f4dae | 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 * as logging from './core/log'\nimport * as charts from './charts/core'\nimport * as factory from './models/items/factory'\nimport * as app from './app/app'\nimport * as edit from './edit/edit'\nimport { actions } from '.... | typescript | edit | 0 | 1 | apache-2.0 | 360f7afed51c62bbaa89e19c43838516cc84f63b | section-io/tessera,urbanairship/tessera,jmptrader/tessera,aalpern/tessera,aalpern/tessera,tessera-metrics/tessera,section-io/tessera,urbanairship/tessera,jmptrader/tessera,jmptrader/tessera,Slach/tessera,tessera-metrics/tessera,tessera-metrics/tessera,section-io/tessera,section-io/tessera,jmptrader/tessera,aalpern/tess... | src/ts/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport ListenerAdapter from '../Observer/ListenerAdapter';\nimport Observer from '../Observer/Observer';\nimport ThemesManager from './ThemesManager';\nimport ThemesRegistry, {Theme} from './ThemesRegistry';\n\nclass Container {\n regi... | typescript | edit | 0 | 1 | mit | 005c771566fb87cdbe54e1699b4bdf1ac1d7d00a | enbock/Time-Tracker,enbock/Time-Tracker,enbock/Time-Tracker,enbock/Time-Tracker | src/Theme/Container.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { forwardRef, Directive } from '@angular/core';\nimport { NG_VALUE_ACCESSOR, ControlValueAccessor } from '@angular/forms';\nimport { RecaptchaComponent } from './recaptcha.component';\n\nexport const RECAPTCHA_VALUE_ACCESSOR: any... | typescript | edit | 0 | 2 | mit | c7bcf55e2fb1e904d058565905352d8da84a6ac4 | DethAriel/ng-recaptcha,DethAriel/ng-recaptcha,DethAriel/ng-recaptcha,DethAriel/ng2-recaptcha,DethAriel/ng-recaptcha | recaptcha/recaptcha-value-accessor.directive.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { IncomingMessage } from 'http';\nimport { Buffer } from 'buffer';\n\n/**\n * Simple utility Hash array type\n */\nexport type ObjectMap<T> = {[key: string]: T};\n\n/**\n * A Valid HTTP operation\n */\nexport type HttpVerb = 'GET... | typescript | edit | 0 | 0 | mit | 1cef63ff7984a5d32e1719b4abcb2f3fb502ba1e | syrp-nz/ts-lambda-handler,syrp-nz/ts-lambda-handler | src/Types.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { getAST } from './ast';\nimport { emit } from './emitter';\n\ndeclare function require(name: string);\ndeclare var process: any;\n\n(function () {\n if (typeof process !== 'undefined' && process.nextTick && !process.browser && ... | typescript | edit | 0 | 6 | mit | a8ecc7a95006796aca3a913a7c5882bf1ba89d93 | artfuldev/RIoT | transpiler/src/index.ts | rejected_duplicate | Near-duplicate of sample 113233 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react'\nimport classnames from 'classnames'\nimport { Backdrop } from './Backdrop'\n\nexport interface DropdownProps {\n label: string | React.ReactElement\n children: React.ReactElement<{onClick: () => void}>[]\n}\... | typescript | edit | null | null | mit | b35f7725d80c5c6f6a2bd3eda2ce91d6b63f0258 | jeremija/peer-calls,jeremija/peer-calls,jeremija/peer-calls | src/client/components/Dropdown.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 { JsonFormsState, RankedTester, rankWith, uiTypeIs } from '@jsonforms/core';\nimport { JsonFormsIonicLayout } from '../JsonFormsIonicLayout';\nimport { NgRedux } from '@angular-redux/st... | typescript | edit | 0 | 1 | mit | 7b97aa473ca8a9e6d98fa81583058c507a4a0885 | qb-project/jsonforms,qb-project/jsonforms,qb-project/jsonforms | packages/ionic/src/layouts/vertical/vertical-layout.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {RouterModule, Routes} from '@angular/router';\nimport {ModuleWithProviders} from '@angular/core';\nimport {MessagesDemoComponent} from './messages-demo.component';\n\nconst routes: Routes = [\n {path: '', redirectTo: 'edit',... | typescript | edit | 0 | 0 | apache-2.0 | e3b2753cace9a0b9854d18e633ef7cb3e8027ac9 | dainst/idai-components-2,dainst/idai-components-2,dainst/idai-components-2 | demo/app/app.routing.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * node-win32-api\n *\n * @author waiting\n * @license MIT\n * @link https://github.com/waitingsong/node-win32-api\n */\n\nimport {parse_windef} from './lib/helper';\n\nimport * as User32 from './lib/user32/index';\nexport {User32 ... | typescript | edit | 0 | 0 | mit | 428ac84c602f47df3a7edd6a704245f40736b5b6 | waitingsong/node-win32-api,waitingsong/node-win32-api,waitingsong/node-win32-api | src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path='fourslash.ts'/>\n\n//// class Foo {\n//// bar () {\n//// /*1*/\n//// class Foo1 {\n//// bar1 () {\n//// /*2*/\n//// }\n//// /*3*/\n//// ... | typescript | edit | 0 | 0 | apache-2.0 | 47302147abed1381f87f8053d7c4cd58c9ca0c67 | kpreisser/TypeScript,weswigham/TypeScript,alexeagle/TypeScript,nojvek/TypeScript,alexeagle/TypeScript,nojvek/TypeScript,weswigham/TypeScript,donaldpipowitch/TypeScript,minestarks/TypeScript,SaschaNaz/TypeScript,donaldpipowitch/TypeScript,microsoft/TypeScript,Microsoft/TypeScript,RyanCavanaugh/TypeScript,kitsonk/TypeScr... | tests/cases/fourslash/completionInFunctionLikeBody.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { GraphQLSchema } from 'graphql';\nimport { FieldMetadata } from '../extended-schema/extended-schema';\n\nexport interface ProxyConfig {\n endpoints: EndpointConfig[]\n}\n\ninterface EndpointConfigBase {\n namespace: string... | typescript | edit | 0 | 0 | mit | 3386f8286022d03880d30f7db9ffeed85af57262 | AEB-labs/graphql-weaver,AEB-labs/graphql-weaver | src/config/proxy-configuration.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport { c } from 'ttag';\nimport { Location } from 'history';\nimport { Sidebar, SidebarPrimaryButton, SidebarNav } from 'react-components';\n\nimport { MESSAGE_ACTIONS } from '../../constants';\nimport Mail... | typescript | edit | null | null | mit | 9a25649e2d28f777c9ef41d1f0545b2bda782fc2 | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | applications/mail/src/app/components/sidebar/MailSidebar.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport { AuthService } from './auth.service';\nimport { Headers, Http, Response, ResponseOptionsArgs } from '@angular/http';\n\nimport { Observable } from 'rxjs/Observable';\n@Injectable()\ne... | typescript | edit | 0 | 3 | mit | 960dfb4b8980bed232e7361d99b23871c202e535 | alex-dmtr/roadmap-angular,alex-dmtr/roadmap-angular,alex-dmtr/roadmap-angular | src/app/auth.http.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n'use strict';\n\nimport assert from '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 | 97d45ada47675c90900d7f30ee0b690ff5765636 | sebbo2002/gitlab-badges,sebbo2002/gitlab-badges | test/lib/states.ts | rejected_duplicate | Near-duplicate of sample 114617 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * Gets the value of a property on an object.\n *\n * @param {Object} obj The value to be clamped\n * @param {String} key The lower boundary of the output range\n * @returns {Object} the property value or 'null'.\n */\nexport funct... | typescript | edit | 0 | 3 | mit | 55f4dac3d3569fb4b8c35f5e63ead24b97316921 | aranja/tux,aranja/tux,aranja/tux | packages/tux/src/utils/accessors.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { MicroframeworkLoader, MicroframeworkSettings } from 'microframework-w3tec';\nimport { createConnection } from 'typeorm';\n\nimport { env } from '../env';\n\nexport const typeormLoader: MicroframeworkLoader = async (settings: Mi... | typescript | edit | 0 | 2 | mit | 22984387b04d0fc775d1b50c1a898a43737e1690 | w3tecch/express-typescript-boilerplate,w3tecch/express-typescript-boilerplate,w3tecch/express-typescript-boilerplate | src/loaders/typeormLoader.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { versionIsAtLeast } from \"../utils\";\n\nexport class FlutterCapabilities {\n\tpublic static get empty() { return new FlutterCapabilities(\"0.0.0\"); }\n\n\tpublic version: string;\n\n\tconstructor(flutterVersion: string) {\n\t... | typescript | edit | 0 | 1 | mit | eeac1b49bc40fe6d8c43f0bf22405d21419fc482 | Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code | src/flutter/capabilities.ts | rejected_duplicate | Near-duplicate of sample 114204 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/* eslint-disable no-console */\n\nimport { register } from 'register-service-worker';\n\nif (process.env.NODE_ENV === 'production') {\n register(`${process.env.BASE_URL}service-worker.js`, {\n ready() {\n console.log(\n ... | typescript | edit | 0 | 1 | mit | f731317ef17457628ef32cd1f8d3454498ac6f95 | babsey/nest-desktop,babsey/nest-desktop,babsey/nest-desktop,babsey/nest-desktop,babsey/nest-desktop | src/registerServiceWorker.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path=\"fourslash.ts\"/>\r\n\r\n////var x = [1, 2, 3];\r\n////var y/*y*/ = x./*1*/pop/*2*/(5);\r\n////\r\n\r\n/* BUG 703066\r\nverify.errorExistsBetweenMarkers(\"1\", \"2\");\r\nverify.numberOfErrorsInCurrentFile(2);\r\n//... | typescript | edit | 0 | 0 | apache-2.0 | d94c887c8e78e57565fe09714024d4b82cbc7cd7 | mbrowne/typescript-dci,hippich/typescript,hippich/typescript,mbrowne/typescript-dci,hippich/typescript,popravich/typescript,popravich/typescript,mbebenita/shumway.ts,mbrowne/typescript-dci,popravich/typescript,fdecampredon/jsx-typescript-old-version,mbebenita/shumway.ts,mbebenita/shumway.ts,fdecampredon/jsx-typescript-... | tests/cases/fourslash/extendArrayInterfaceMember.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport class Authentication {\n scheme: AuthenticationScheme;\n}\nexport class GuestAuthentication extends Authentication {\n scheme = AuthenticationScheme.GUEST;\n}\nexport class TransportAuthentication extends Authentication {\n sc... | typescript | edit | 0 | 1 | apache-2.0 | 8c5c59a02a636d5a08733d2477311fa82c82007e | takenet/lime-js,takenet/lime-js | src/Lime/Protocol/Security/Authentication.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {ILogger} from \"./ILogger\";\nimport * as _ from \"lodash\";\nimport {genId} from \"./uuid\";\nimport {MutedLogger} from \"./MutedLogger\";\n\nexport type NeographyConfigParams = {\n host:string;\n username:string;\n pa... | typescript | edit | 0 | 1 | mit | 5abc7f7cb883215eda1c64474448d041aee1d68b | robak86/neography | lib/utils/Config.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { OpaqueToken, Provider } from 'angular2/core';\nimport * as moment from 'moment';\n\nimport { CompareResult } from '../../types/compareResult';\nimport { defaultFormats } from '../date/date.module';\n\nexport interface ITimeUtil... | typescript | edit | 0 | 5 | mit | 2a30c1ad011e31631f1b5d40bbd9799336422c20 | RenovoSolutions/TypeScript-Angular-Utilities,SamGraber/TypeScript-Angular-Utilities,RenovoSolutions/TypeScript-Angular-Utilities,SamGraber/TypeScript-Angular-Utilities | source/services/time/time.service.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 { Todo } from \"../model/Todo\"\nimport { TodoList } from \"./TodoList\"\nimport { Todos } from \"../model/Todos\"\nimport { TodosFilter } from \"../model/T... | typescript | edit | null | null | unlicense | c31c75c02db9f4d95acf9714ca5f23a46d9641c1 | janaagaard75/framework-investigations,janaagaard75/framework-investigations,janaagaard75/framework-investigations,janaagaard75/framework-investigations | react-mobx-todos/src/components/FilteredTodoList.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n\n///<reference path=\"../bower_components/babylonjs/dist/preview release/babylon.d.ts\"/>\n///<reference path=\"../typings/browser.d.ts\"/>\n\nimport Nanoshooter from \"./Nanoshooter\"\n\n// This main script is the entry point for the ... | typescript | edit | 0 | 1 | mit | 987ad8d7b7361a95131d7033be00bbd850424644 | ChaseMoskal/Nanoshooter,ChaseMoskal/Nanoshooter | src/main.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Field } from \"formik\";\nimport React = require(\"react\");\n\nexport const Dropdown = (props: {\n fieldName: string;\n options: {};\n children: any;\n}) => (\n <div className=\"c-dropdown\">\n {props.children}\n <Se... | typescript | edit | null | null | mit | ca8f66105b5cd8183583579ee11a2fb1cc8e60e2 | cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative | client/Settings/components/Dropdown.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * @license\n * Copyright 2019 Google Inc.\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... | typescript | edit | 0 | 3 | apache-2.0 | 8068d5a72c5ce9ee6f2bf8668f4e41f1d2c86c56 | FirebaseExtended/firebase-js-sdk-performance-dashboard,FirebaseExtended/firebase-js-sdk-performance-dashboard | src/types/sdk.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { INodeFilter, MarkdownContext } from './node-filter'\n\nexport class CloseKeywordFilter implements INodeFilter {\n public constructor(\n /** The context from which the markdown content originated from - such as a PullRequest... | typescript | edit | 0 | 3 | mit | 55e28a5872218548e9a29dda5d787205ecea3f0f | shiftkey/desktop,desktop/desktop,shiftkey/desktop,desktop/desktop,shiftkey/desktop,desktop/desktop,shiftkey/desktop,desktop/desktop | app/src/lib/markdown-filters/close-keyword-filter.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\n\nexport default class extends React.Component {\n public render() {\n // Load Twitter's widget.js in index.html.\n\n return (\n <a\n href=\"https://twitter.c... | typescript | edit | null | null | mit | eb5fe57e4e60069ca8ba06f2eec13437f109a34b | raviqqe/code2d,raviqqe/code2d,raviqqe/code2d,raviqqe/code2d | app/src/component/TwitterButton.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport detectIndent from 'detect-indent';\nimport redent from 'redent';\n\n/**\n * Indent code.\n *\n * @export\n * @param {string} code Code.\n * @returns {string}\n */\nexport default function indentCode(code: string): string {\n\tif ... | typescript | edit | 0 | 3 | mit | 9a7b4f7a1e98c7a6fc468b6670bd59ec9cd9709b | gluons/vue-highlight.js | src/lib/indentCode.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport uuid from 'uuid/v1';\nimport { addons } from '@storybook/addons';\nimport { EVENT_ID } from '../constants';\nimport { ActionDisplay, ActionOptions, HandlerFunction } from '../models';\n\nexport function action(name: string, optio... | typescript | edit | 0 | 2 | mit | 02231f542cfbe4b88c6b28c13656a1ece0541d0b | storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook | addons/actions/src/preview/action.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport 'bootstrap/dist/css/bootstrap.min.css';\nimport './index.css';\nimport './buttons.css';\nimport App from './App';\nimport * as serviceWorker from './serviceWorker';\n... | typescript | edit | null | null | apache-2.0 | c1e777490b9b6315e555de150f0badd894ab8fc2 | dainst/idai-field-web,dainst/idai-field-web,dainst/idai-field-web | ui/src/index.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// @flow\nimport * as _ from 'lodash'\nimport Layer from './layer'\nimport {TimelaneScheme} from './scheme/timelane'\n\nexport default class TimeLane\n{\n static deserialize(timelaneJson: TimelaneScheme)\n {\n const timelan... | typescript | edit | 0 | 1 | mit | a9c143ef4311bc9c3f19add7812ae5750ccbf51a | Ragg-/Delir,Ragg-/Delir,Ragg-/Delir,Ragg-/Delir | src/delir-core/src/project/timelane.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nwindow.onerror = function (errorMsg, url, lineNumber, col, errorObj) {\n \"use strict\";\n try {\n const xhr = new XMLHttpRequest();\n xhr.open(\"POST\", \"/error/scripterror/\", true);\n xhr.setRequestHeader... | typescript | edit | 0 | 4 | mit | 6893e132909f9dc7d6df88f72279a8e9558628b0 | Sora2455/Sora-s-Nerd-Den,Sora2455/Sora-s-Nerd-Den,Sora2455/Sora-s-Nerd-Den,Sora2455/Sora-s-Nerd-Den | SorasNerdDen/Scripts/captureErrors.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for ... | typescript | edit | 0 | 1 | mit | 0aea3d14ab58a37b5cc4c4f4a48464e7dcdec939 | eamodio/vscode,microsoft/vscode,eamodio/vscode,eamodio/vscode,microsoft/vscode,eamodio/vscode,eamodio/vscode,eamodio/vscode,eamodio/vscode,eamodio/vscode,microsoft/vscode,microsoft/vscode,eamodio/vscode,microsoft/vscode,microsoft/vscode,eamodio/vscode,microsoft/vscode,microsoft/vscode,eamodio/vscode,eamodio/vscode,eamo... | src/vs/workbench/contrib/terminal/browser/links/terminalBaseLinkProvider.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/1.0.5',\n RELEASEVERSION: '1... | typescript | edit | 0 | 0 | mit | 304c3d7801dd788cb54ca32968ee5aea49538f50 | nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website | tools/env/base.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nmodule Core {\n\n export class PageTitle {\n\n private titleElements: { (): string } [] = [];\n\n public addTitleElement(element:() => string):void {\n this.titleElements.push(element);\n }\n\n public getTitle():string... | typescript | edit | 0 | 3 | apache-2.0 | 0b5f8f3e0e017aecf5752eafd5f55d702bb74672 | andytaylor/hawtio,mposolda/hawtio,padmaragl/hawtio,rajdavies/hawtio,grgrzybek/hawtio,voipme2/hawtio,hawtio/hawtio,stalet/hawtio,mposolda/hawtio,uguy/hawtio,Fatze/hawtio,jfbreault/hawtio,grgrzybek/hawtio,andytaylor/hawtio,telefunken/hawtio,rajdavies/hawtio,voipme2/hawtio,uguy/hawtio,skarsaune/hawtio,padmaragl/hawtio,ugu... | hawtio-web/src/main/webapp/app/camel/js/pageTitle.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { saveAs } from 'file-saver'\nimport { Parser } from 'json2csv'\nimport { CardData } from '../../types'\n\nconst saveCsvFile = (deckName: string, cardsData: CardData[]) => {\n const json2csvParser = new Parser({\n field... | typescript | edit | 0 | 1 | mit | 6fdc082bfdc1cad62a042cd53bdb2901274e9bfd | yakhinvadim/longman-to-anki-web,yakhinvadim/longman-to-anki,yakhinvadim/longman-to-anki,yakhinvadim/longman-to-anki-web,yakhinvadim/longman-to-anki | src/utils/saveCsvFile/saveCsvFile.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Constants from 'expo-constants';\nimport { Platform } from 'react-native';\nimport semver from 'semver';\n\nimport * as Kernel from '../kernel/Kernel';\n\nconst isProduction = !!(\n Constants.manifest.id === '@exponent/home' && ... | typescript | edit | 0 | 0 | bsd-3-clause | 092f6a094b6f8b979a272b918921a174de610666 | exponent/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponent,exponent/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponent,exponentjs/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent,exponent/exponen... | home/utils/Environment.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nnamespace fun {\n /**\n * Returns true if the value passed in is either null or undefined.\n */\n export function isVoid(value: any): value is void {\n // See https://basarat.gitbooks.io/typescript/content/docs/tips... | typescript | edit | 0 | 2 | mit | 0cc5c711dfde79acebb41a9f91a3002ec9fe80cf | federico-lox/fun.ts | src/type.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {ISolution} from '../solution.interface';\n\nexport class Solution implements ISolution<string, string> {\n static PRONOUNS: string[] = [\n \"I\", \"YOU\", \"HE\", \"SHE\", \"IT\", \"WE\", \"THEY\"\n ];\n\n static INVALID: ... | typescript | edit | 0 | 3 | unlicense | e7b2790d9031b05266cfaef47f276d5fdd7c5de0 | Jameskmonger/challenges | problems/yoda-speak/solution.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as vscode from 'vscode';\n\nimport { AsciidocParser } from '../text-parser';\n\nexport class AttributeCompleter {\n\n provideCompletionItems(document: vscode.TextDocument, position: vscode.Position) {\n\n const adoc =... | typescript | edit | 0 | 2 | mit | 2e4e35bd8d76192d987ced6e5ddcc92156459cdb | joaompinto/asciidoctor-vscode,joaompinto/asciidoctor-vscode,joaompinto/asciidoctor-vscode | src/features/attributeCompleter.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { chain, externalSchematic, Rule } from '@angular-devkit/schematics';\nimport { Schema as NgComponentOptions } from '@schematics/angular/component/schema';\n\nexport interface ScamOptions extends NgComponentOptions {\n separat... | typescript | edit | 0 | 2 | mit | 24d0bfc33d97c435372f8e4fa63da567e829ac38 | wishtack/ng-steroids,wishtack/wishtack-steroids,wishtack/wishtack-steroids,wishtack/ng-steroids,wishtack/wishtack-steroids | packages/schematics/src/scam/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport { connect } from 'react-redux';\n\nimport { Provider } from 'react-redux';\nimport { Router } from 'react-router';\nimport { AppLoading } from 'View/Ui/Index';\n\ninterface IContainerProps\n{\n s... | typescript | edit | null | null | mit | f4cdc78c9f74d5918d40b03a526c1cef17b3a9e6 | harksys/HawkEye,harksys/HawkEye,harksys/HawkEye | src/js/View/Container.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { StoryFn } from '@storybook/addons';\n\nexport declare const moduleMetadata: (\n metadata: Partial<NgModuleMetadata>\n) => (storyFn: StoryFn<StoryFnAngularReturnType>) => any;\n\nexport interface NgModuleMetadata {\n declarati... | typescript | edit | 0 | 1 | mit | 2d66c9325386534068e0cfb8fce7fb4529048cd7 | storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/react-storybook,storybooks/react-storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook | app/angular/src/client/preview/types.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { useEffect, useRef } from 'react';\n\nexport function useMountStatusRef() {\n const mountStatusRef = useRef<'FIRST_RENDER' | 'MOUNTED' | 'UNMOUNTED'>('FIRST_RENDER');\n useEffect(() => {\n mountStatusRef.current = 'MOUNTED'... | typescript | edit | 0 | 1 | apache-2.0 | b238b9c2357ed33e44bbcd48cffe6255c923dd5c | spinnaker/deck,spinnaker/deck,spinnaker/deck,spinnaker/deck | packages/core/src/presentation/hooks/useMountStatusRef.hook.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Parser } from \"./parser\";\nimport { FilePusher } from \"../gocadpusher/filepusher\";\ndeclare var proj4;\n\n/**\n * Uses the block reading parser in the current UI thread. in\n * other words single threading. Mainly for debug... | typescript | edit | 0 | 1 | apache-2.0 | dd33b6c45cdbd42da8646f083cc4fffea105fea3 | Tomella/explorer-3d,Tomella/explorer-3d,Tomella/explorer-3d | source/parser/localgocadpusher.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { booleanRepository } from './boolean';\nimport { geoRepository } from './geo';\nimport { jsonRepository } from './json';\nimport { numberRepository } from './number';\nimport { objectRepository } from './object';\nimport { strin... | typescript | edit | 0 | 0 | apache-2.0 | 624047ad980c0a43cc8d86ace21ae178314f31a0 | terascope/teraslice,terascope/teraslice,terascope/teraslice,terascope/teraslice | packages/data-mate/src/function-configs/repository.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { BrowserModule } from '@angular/platform-browser';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { HttpModule } from '@angular/http';\nimport { MaterialModule, MdIconRegistry }... | typescript | edit | 0 | 0 | mit | fea34788c7ba37f72838cebd97184132fe16339f | tarlepp/angular2-firebase-material-demo,tarlepp/Angular-Firebase-Material-Demo,tarlepp/Angular-Firebase-Material-Demo,tarlepp/angular2-firebase-material-demo,tarlepp/angular2-firebase-material-demo | src/app/app.module.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/* tslint:disable:no-unused-variable */\n\n/*!\n * Home Component Test\n *\n * Copyright(c) Exequiel Ceasar Navarrete <<EMAIL>>\n * Licensed under MIT\n */\n\nimport { Renderer } from '@angular/core';\nimport { TestBed, async, inject } ... | typescript | edit | 0 | 1 | mit | 7e66879fb7cc0c8385ec31cedc609167fd8f181b | ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-ng2 | src/app/map/home/home.component.spec.ts | rejected_duplicate | Near-duplicate of sample 114015 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { checkProtoChain, checkProperties } from './spec.utils'\nimport { CustomError } from './custom-error'\n\ntest('Instance', () => checkProtoChain(CustomError, Error))\n\ntest('Instance pre ES6 environment', () => {\n\tconst O = Ob... | typescript | edit | 0 | 1 | mit | c9bc8427f9c9ed0ff9b128b0b0a3fc9f52fa4cee | adriengibrat/ts-custom-error | src/custom-error.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport 'd3'\nimport 'c3'\nimport './promise'\nimport './find'\nimport './event-listener'\nimport './custom-event'\nimport './starts-with'\nimport './fetch'\n```\n\nApply this change: Remove c3 and d3 from polyfills"
},
{
"role":... | typescript | edit | 0 | 0 | mit | 217d0c690ded16f4b2e0b705ba69fe788532bd69 | the-concierge/concierge,the-concierge/concierge,the-concierge/concierge | front/polyfill/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Document } from './document'\n\nimport { SortData } from './types/types'\n\nimport { binaryInsert, binarySearch, quickSort } from './utils'\n\nclass Index {\n public name:string\n\n private _index:Document[]\n private _sortD... | typescript | edit | 0 | 3 | mit | d8760f06e8e2c6cd09491db7dde57d399c9eef2c | varbrad/mindb,varbrad/mindb | src/index.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// Entry point for the notebook bundle containing custom model definitions.\n//\n// Setup notebook base URL\n//\n// Some static a... | typescript | edit | 0 | 0 | bsd-3-clause | bf57f5542a69ac7a6a209552f7255c665169ad05 | jupyter-widgets/widget-ts-cookiecutter,jupyter-widgets/widget-ts-cookiecutter,jupyter-widgets/widget-ts-cookiecutter | {{cookiecutter.github_project_name}}/src/extension.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport { RESTError } from './error';\nexport { SchemaRegistry } from './schema';\nexport { API } from './api';\nexport { Resource } from './resource';\nexport * from './mongo';\n\n```\n\nApply this change: feat(module): Add missing expo... | typescript | edit | 0 | 0 | mit | 9ca5621e47793cf900d8fba64d4bd035ea647431 | vivocha/arrest,vivocha/arrest | src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { camelCase, snakeCase } from 'change-case';\n\nimport { changeCaseDeep, getObject, validate, SchemaType } from './utils';\n\ninterface TinyProps {\n [key: string]: { schema: SchemaType, value: any };\n}\n\nexport class TinyOR... | typescript | edit | 0 | 3 | mit | a00b6ff71c389d889a5bcb807dd0c543389d61a3 | prashaantt/tiny-orm,prashaantt/tiny-orm | src/TinyORM.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as Hapi from 'hapi';\n\nimport Logger from './helper/logger';\nimport * as Router from './router';\nimport Plugins from './plugins';\n\nclass Server {\n public static init() : void {\n const server = new Hapi.Server()... | typescript | edit | 0 | 3 | mit | d92759ff7271ab4d818b7416ffc385ca80191064 | BlackBoxVision/typescript-hapi-starter,BlackBoxVision/typescript-hapi-starter,BlackBoxVision/typescript-hapi-starter | src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport const checkProtoChain = (contructor, ...chain) => {\n\tconst error = new contructor()\n\texpect(error).toBeInstanceOf(contructor)\n\tchain.forEach(c => expect(error).toBeInstanceOf(c))\n}\n\nexport const checkProperties = (contru... | typescript | edit | 0 | 1 | mit | 79f51c009d8b4f2b8447f99fb2c94714229f9771 | adriengibrat/ts-custom-error | src/spec.utils.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, OnInit } from '@angular/core';\nimport { ViewManagerService } from './manager/view-manager.service';\n\ndeclare var smoothScroll: any;\n\n@Component({\n selector: 'app-root',\n templateUrl: './app.component.html',\... | typescript | edit | 0 | 1 | mit | 1fb98a4303e5e55acca78d7e97a2d6a917a705eb | tsugitta/tsugitta.github.io,tsugitta/tsugitta.github.io,tsugitta/tsugitta.github.io,tsugitta/tsugitta.github.io | src/app/app.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Copyright (c) Jupyter Development Team.\n// Distributed under the terms of the Modified BSD License.\n\nimport {\n Application\n} from 'phosphor/lib/ui/application';\n\nimport {\n ApplicationShell\n} from './shell';\n\n\n/**\n * Th... | typescript | edit | 0 | 2 | bsd-3-clause | bfe4eb7edff77eef43e45daf2a4251e12ff4ada7 | charnpreetsingh185/jupyterlab,charnpreetsingh185/jupyterlab,charnpreetsingh185/jupyterlab,eskirk/jupyterlab,charnpreetsingh185/jupyterlab,charnpreetsingh185/jupyterlab,eskirk/jupyterlab,eskirk/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,eskirk/jupyterlab,esk... | src/application/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nmodule Rimu.Options {\n\n export interface Values {\n safeMode?: number;\n htmlReplacement?: string;\n }\n\n // Option values.\n export var safeMode: number;\n export var htmlReplacement: string;\n\n // Set options to values... | typescript | edit | 0 | 5 | mit | 86fc55e14254ceb3a980575e76bdc415e3b621b8 | srackham/rimu | src/options.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport RoutingServer from './routingserver';\n\nexport interface ConfigServer {\n listenPort: number;\n routingServers: RoutingServer[];\n}\n\nexport interface LogOptions {\n clientTimeouts: boolean;\n clientConnect: boolean;\n cli... | typescript | edit | 0 | 0 | mit | cdd31d87e362dd306db6692961b067d099c0f895 | popstarfreas/Dimensions,popstarfreas/Dimensions,popstarfreas/Dimensions | configloader.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 { User } from './user';\nimport { Observable } from \"rxjs\";\n\n@Injectable()\nexport class UserListService {\n private userUrl: string = API... | typescript | edit | 0 | 1 | mit | 7453fca0196db941888430a75ca6036ee37bff1b | UMM-CSci-3601/3601-lab4_mongo,UMM-CSci-3601-F17/interation-1-drop-table-teams,UMM-CSci-3601-F17/interation-1-drop-table-teams,UMM-CSci-3601/3601-lab4_mongo,UMM-CSci-3601-F17/interation-1-drop-table-teams,UMM-CSci-3601-F17/interation-1-drop-table-teams,UMM-CSci-3601-F17/interation-1-drop-table-teams,UMM-CSci-3601/3601-l... | client/src/app/users/user-list.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { RouterModule, Routes } from '@angular/router';\nimport { AutoLoginGuard } from 'angular-auth-oidc-client';\nimport { ForbiddenComponent } from './forbidden/forbidden.component';\nimport { HomeComponent } from './home/home.compo... | typescript | edit | 0 | 0 | mit | 1d11074a36d8d75c7b5070ba4e818e8849a33f73 | damienbod/angular-auth-oidc-client,damienbod/angular-auth-oidc-client,damienbod/angular-auth-oidc-client | projects/sample-code-flow-azuread/src/app/app.routes.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { expect } from \"chai\";\nimport { capture, spy } from \"ts-mockito\";\nimport { InMemoryStorage } from \"storage/Storage\";\nimport { CompressedStorage } from \"storage/CompressedStorage\";\n\nfunction sizeOf(data: any): number... | typescript | edit | 0 | 1 | mit | e8605f71a9fb400963f99cfbca9d07050a15e8fa | easyfuckingpeasy/chrome-reddit-comment-highlights,easyfuckingpeasy/chrome-reddit-comment-highlights | test/storage/CompressedStorageTest.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport DS from \"ember-data\";\nimport { computed, get } from \"@ember/object\";\nimport Price from \"./price\";\nimport Product from \"./product\";\nimport Bom from \"./bom\";\nimport SkuImage from \"./sku-image\";\nimport SkuField fro... | typescript | edit | 0 | 0 | mit | fbd0c27a4ef52e73c0fab9c9cc86aa9ccd1f8b45 | goods/ember-goods,goods/ember-goods,goods/ember-goods | addon/models/sku.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/** The `localStorage` key for whether we've shown the Welcome flow yet. */\nconst HasShownWelcomeFlowKey = 'has-shown-welcome-flow'\n\n/**\n * Check if the current user has completed the welcome flow.\n */\nexport function hasShownWelc... | typescript | edit | 0 | 1 | mit | 4e1b0b95ef909e3e82a9be03281320229394c43f | kactus-io/kactus,j-f1/forked-desktop,j-f1/forked-desktop,artivilla/desktop,j-f1/forked-desktop,kactus-io/kactus,artivilla/desktop,shiftkey/desktop,artivilla/desktop,kactus-io/kactus,shiftkey/desktop,shiftkey/desktop,say25/desktop,desktop/desktop,say25/desktop,desktop/desktop,say25/desktop,desktop/desktop,j-f1/forked-de... | app/src/lib/welcome.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport VueOffline from 'vue-offline'\nimport store from '@vue-storefront/store'\n\nexport const ProductGallery = {\n name: 'ProductGallery',\n components: {\n VueOffline\n },\n props: {\n gallery: {\n type: Array,\n ... | typescript | edit | 0 | 3 | mit | 20880a949b764ae35c9d69b55358f932094a6621 | DivanteLtd/vue-storefront,DivanteLtd/vue-storefront,DivanteLtd/vue-storefront,DivanteLtd/vue-storefront,pkarw/vue-storefront,pkarw/vue-storefront,pkarw/vue-storefront,pkarw/vue-storefront | core/modules/catalog/components/ProductGallery.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.13.0',\n RELEASEVERSION: '... | typescript | edit | 0 | 0 | mit | 1f104389d9872df308fe4ae255f07f00100b61f6 | nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website | tools/env/base.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// This module renders an element with an emoji using\n// a non system-default font to workaround an Chrome\n// issue that causes unexpected spacing on emojis.\n// More info:\n// https://bugs.chromium.org/p/chromium/issues/detail?id=111... | typescript | edit | 0 | 0 | mit | 40b36eebfb02e6ff1869ed2283245f0f46fa302f | say25/desktop,kactus-io/kactus,j-f1/forked-desktop,desktop/desktop,shiftkey/desktop,say25/desktop,artivilla/desktop,j-f1/forked-desktop,kactus-io/kactus,kactus-io/kactus,desktop/desktop,artivilla/desktop,shiftkey/desktop,desktop/desktop,artivilla/desktop,j-f1/forked-desktop,shiftkey/desktop,shiftkey/desktop,j-f1/forked... | app/src/lib/fix-emoji-spacing.ts | rejected_duplicate | Near-duplicate of sample 114089 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\nimport {Navbar} from \"./navbar\"\nimport { Link } from 'react-router'\n\nexport interface LayoutProps {\n}\n\nexport class Layout extends React.Component<LayoutProps, {}> {\n render() {\n ... | typescript | edit | null | null | mit | 60c6e295607e6091c679eeef3b8353ce40c99447 | goodbye-island/S-Store-Front-End,goodbye-island/S-Store-Front-End,goodbye-island/S-Store-Front-End | src/components/layout/layout.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\" />\n\n//// function f18(a?:string, ...b){}\n//// \n//// function f19(a?:string, b?){}\n//// \n//// function f20(a:string, b?:string, ...c:number[]){}\n//// \n//// function f21(a:string, b?:stri... | typescript | edit | 0 | 0 | apache-2.0 | e87521a0fd7ac14660a8bf265df3aa93f7516a5b | hippich/typescript,mbebenita/shumway.ts,mbrowne/typescript-dci,mbrowne/typescript-dci,fdecampredon/jsx-typescript-old-version,popravich/typescript,hippich/typescript,mbebenita/shumway.ts,mbrowne/typescript-dci,mbebenita/shumway.ts,fdecampredon/jsx-typescript-old-version,hippich/typescript,mbrowne/typescript-dci,popravi... | tests/cases/fourslash/restParametersTypeValidation_1.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { environment } from '../environments/environment';\n\nexport class AppConfig {\n public static K8S_REST_URL = environment.prefix + 'k8s/';\n public static VPP_REST_URL = environment.prefix + 'contiv/';\n public static API_V1 ... | typescript | edit | 0 | 0 | apache-2.0 | 074da24c780ef0ef3a81d8c014deb859f73a4cd8 | rastislavszabo/vpp,rastislavszabo/vpp,rastislavszabo/vpp,brecode/vpp,brecode/vpp,rastislavszabo/vpp,rastislavszabo/vpp,rastislavszabo/vpp,rastislavszabo/vpp,brecode/vpp,brecode/vpp,brecode/vpp | ui/src/app/app-config.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Transition } from 'angular-ui-router';\nimport { Api } from '../../../../../../../lib/gj-lib-client/components/api/api.service';\nimport { makeState } from '../../../../../../../lib/gj-lib-client/utils/angular-facade';\n\nmakeS... | typescript | edit | 0 | 1 | mit | 40ac3bd9e28c76551fe7dbb2ade8cde0fd71f1aa | gamejolt/gamejolt,gamejolt/gamejolt,gamejolt/gamejolt,gamejolt/gamejolt | src/app/views/dashboard/developer/games/manage/site/site.state.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport './App.css';\n\nconst logo = require('./logo.svg');\n\nclass App extends React.Component<{}, null> {\n render() {\n return (\n <div className=\"App\">\n <div className=\"App-header... | typescript | edit | null | null | bsd-3-clause | d2369f887a1e269cbf51fd935b2c5a9dbabb3f6f | devex-web-frontend/create-react-app-dx,devex-web-frontend/create-react-app-dx,devex-web-frontend/create-react-app-dx,devex-web-frontend/create-react-app-dx | packages/react-scripts/template/src/App.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { GeneralTypeMap } from \"../../src\";\n\nexport interface SampleTypeMap extends GeneralTypeMap {\n entities: {\n member: { id: string; name: string };\n message: {\n id: string;\n body: string;\n };\n };\n ... | typescript | edit | 0 | 0 | apache-2.0 | d093295d2a63add1bdef03a0388367851a83c687 | phenyl-js/phenyl,phenyl-js/phenyl,phenyl-js/phenyl,phenyl-js/phenyl | modules/interfaces/type-test/helpers/sample-type-map.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Document} from 'idai-components-2';\nimport {migrationMap, subFieldsMigrationMap} from './migration-map';\n\n\n/**\n * @author Thomas Kleinke\n */\nexport module FieldNameMigrator {\n\n export function migrate(document: Docum... | typescript | edit | 0 | 4 | apache-2.0 | fb4510fdcbc336c801347545ca20534d9a49a065 | codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client | app/core/datastore/field/field-name-migrator.ts | accepted | null | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.