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, {SFC} from 'react'\n\ninterface Props {\n message: string\n}\n\nconst DeprecationWarning: SFC<Props> = ({message}) => (\n <div>\n <span className=\"icon stop\" /> {message}\n </div>\n)\n\nexport default DeprecationWa... | typescript | edit | null | null | mit | 475d899555686122c9e19acf2060b2739c6f97c6 | influxdb/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,nooproblem/influxdb,influxdb/influxdb,influxdb/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,influxdata/influxdb,nooproblem/influxdb,infl... | ui/src/admin/components/DeprecationWarning.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 { AngularFire, FirebaseListObservable} from 'angularfire2'\nimport {Observable} from 'rxjs'\nimport \"rxjs/add/operator/filter\";\nimport 'rxjs/add/operator/map'\nimport { Car }... | typescript | edit | 0 | 1 | mit | e952d63f505b75bacf5b1f26ac629a5ce487c2f4 | troygerber/ng-pinewood-derby,troygerber/ng-pinewood-derby,troygerber/ng-pinewood-derby | src/app/car-list/car-list.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport * from './reducer'\nexport * from './types'\n\nimport * as actions from './actions'\nexport { actions }\n\nimport * as components from './components'\nexport { components }\n\n```\n\nApply this change: Add exports to entities mod... | typescript | edit | 0 | 0 | mit | 9cafb277ec84bb74bc367d2efbd7c7bfde5340a2 | Mytrill/hypract,Mytrill/hypract | src/entities/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { PermissionStatus } from './interfaces';\nimport { HandleOptions, Jovo } from '@jovotech/framework';\nimport { AlexaRequest } from './AlexaRequest';\n\nexport type PermissionType = 'timers' | 'reminders';\n\nexport class AlexaHa... | typescript | edit | 0 | 4 | apache-2.0 | 5ded205104500b4791511003f1ccdf40114ff34c | jovotech/jovo-framework-nodejs,jovotech/jovo-framework-nodejs | platforms/platform-alexa/src/AlexaHandles.ts | rejected_duplicate | Near-duplicate of sample 113055 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nconst TurndownService = require('turndown');\nconst turndownService = new TurndownService();\n\n/**\n * Coverts html to markdown. We need this in comment blocks that have been processed by the 'Marked' plugin.\n * @param options\n */\ne... | typescript | edit | 0 | 1 | mit | 25d5632cbf45c0c69412fb24da302f370a65b9a4 | tgreyuk/typedoc-plugin-markdown,tgreyuk/typedoc-plugin-markdown | src/theme/helpers/getMarkdownFromHtml.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, OnInit } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { SecurityService } from 'src/app/security/service/security.service';\n\n@Component({\n selector: 'app-user',\n templateUrl: './user... | typescript | edit | 0 | 1 | apache-2.0 | 005eaebe99a62a5780f16b1651e2c331acb8584c | spring-cloud/spring-cloud-dataflow-ui,spring-cloud/spring-cloud-dataflow-ui,cppwfs/spring-cloud-dataflow-ui,spring-cloud/spring-cloud-dataflow-ui,BoykoAlex/spring-cloud-dataflow-ui,spring-cloud/spring-cloud-dataflow-ui,cppwfs/spring-cloud-dataflow-ui,BoykoAlex/spring-cloud-dataflow-ui,BoykoAlex/spring-cloud-dataflow-ui... | ui/src/app/about/user/user.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as path from 'path';\n\nexport const DEFAULT_APP_NAME = 'APP';\n\n// Update both DEFAULT_ELECTRON_VERSION and DEFAULT_CHROME_VERSION together,\n// and update app / package.json / devDeps / electron to value of DEFAULT_ELECTRON_... | typescript | edit | 0 | 0 | bsd-2-clause | 9893d19085223e06d631e59170c721fff7d6b52a | jiahaog/Nativefier,jiahaog/Nativefier,jiahaog/Nativefier | src/constants.ts | rejected_duplicate | Near-duplicate of sample 112566 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n((w, d, n, l) => {\n \"use strict\";\n if ('serviceWorker' in n) {\n // Register a service worker hosted at the root of the\n // site using the default scope.\n n.serviceWorker.register('/serviceWorker.js', {... | typescript | edit | 0 | 6 | mit | cd7d860529f39542106f0d7427cce08c7abe502d | Sora2455/Sora-s-Nerd-Den,Sora2455/Sora-s-Nerd-Den,Sora2455/Sora-s-Nerd-Den,Sora2455/Sora-s-Nerd-Den | SorasNerdDen/Scripts/addServiceWorker.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Routes } from '@angular/router';\n\nimport { NoContentComponent } from './no-content';\nimport {ProjectComponent} from \"./cardsView/project/project.component\";\nimport {RootComponent} from \"./cardsView/root/root.component\";... | typescript | edit | 0 | 0 | mit | 9e61640883208929723ca71b0850228183ea6fff | JiraGoggles/jiragoggles-frontend,JiraGoggles/jiragoggles-frontend,JiraGoggles/jiragoggles-frontend,JiraGoggles/jiragoggles-frontend | src/app/app.routes.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { tag, WeElement, render, h } from 'omi'\nimport './hello-omi';\n\nimport * as logo from './omi.png';\n\ninterface AbcEvent extends Event {\n detail: {\n name: string;\n age: number;\n }\n}\n\ninterface MyAppP... | typescript | edit | null | null | mit | 51a09b7354ac0727e6da8e0f6cc00382d22faa41 | AlloyTeam/Nuclear,AlloyTeam/Nuclear | packages/omi-cli/template/app-ts/src/index.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Consumer = require(\"sqs-consumer\");\nimport { SQS } from \"aws-sdk\";\n\nconst app = Consumer.create({\n queueUrl: 'https://sqs.eu-west-1.amazonaws.com/account-id/queue-name',\n handleMessage(message, done) {\n // do s... | typescript | edit | 0 | 1 | mit | a26a0a02efd60a83c8f325942a3778daccf8beb0 | AgentME/DefinitelyTyped,dsebastien/DefinitelyTyped,laurentiustamate94/DefinitelyTyped,georgemarshall/DefinitelyTyped,arusakov/DefinitelyTyped,rolandzwaga/DefinitelyTyped,mcliment/DefinitelyTyped,chrootsu/DefinitelyTyped,markogresak/DefinitelyTyped,georgemarshall/DefinitelyTyped,one-pieces/DefinitelyTyped,rolandzwaga/De... | types/sqs-consumer/sqs-consumer-tests.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {MstSvt} from \"../../../model/master/Master\";\nimport {MstSkillContainer, MstSvtSkillContainer, MstCombineSkillContainer} from \"../../../model/impl/MstContainer\";\n\nexport interface MstGoal {\n appVer: string;\n svtRaw... | typescript | edit | 0 | 0 | mit | 668f3f1bd9e9ed578ab58da02b7276950f9a4b4b | agreatfool/fgo-handbook,agreatfool/fgo-handbook,agreatfool/fgo-handbook,agreatfool/fgo-handbook,agreatfool/fgo-handbook,agreatfool/fgo-handbook | src/mobile/lib/model/MstGoal.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nclass PValue {\n constructor() {\n }\n\n apply(transform: PTransform): PValue {\n return transform.expand(this);\n }\n\n map(callable): PValue {\n return this.apply(new ParDo(callable));\n }\n\n}\n\nclass... | typescript | edit | 0 | 1 | apache-2.0 | 5afeb9bcc985b4ad565f0f3775ede9c3d7f87689 | lukecwik/incubator-beam,apache/beam,chamikaramj/beam,lukecwik/incubator-beam,apache/beam,chamikaramj/beam,lukecwik/incubator-beam,chamikaramj/beam,lukecwik/incubator-beam,lukecwik/incubator-beam,lukecwik/incubator-beam,apache/beam,apache/beam,lukecwik/incubator-beam,lukecwik/incubator-beam,apache/beam,chamikaramj/beam,... | sdks/node-ts/src/apache_beam/core.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport * from './apply'\nexport * from './branch'\nexport * from './checkout'\nexport * from './clone'\nexport * from './commit'\nexport * from './config'\nexport * from './core'\nexport * from './description'\nexport * from './diff'\ne... | typescript | edit | 0 | 0 | mit | 7c949f10ea177ce857a7902629dd22f649d9faff | desktop/desktop,shiftkey/desktop,shiftkey/desktop,desktop/desktop,j-f1/forked-desktop,kactus-io/kactus,say25/desktop,kactus-io/kactus,say25/desktop,desktop/desktop,say25/desktop,kactus-io/kactus,artivilla/desktop,artivilla/desktop,artivilla/desktop,shiftkey/desktop,j-f1/forked-desktop,artivilla/desktop,kactus-io/kactus... | app/src/lib/git/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * Copyright (c) 2017 Kenny Do\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE A... | typescript | edit | null | null | mit | bf9fc000bfc00909a6178a3c7b34814c910befc1 | Cookie-AutoDelete/Cookie-AutoDelete,mrdokenny/Cookie-AutoDelete,Cookie-AutoDelete/Cookie-AutoDelete,Cookie-AutoDelete/Cookie-AutoDelete,mrdokenny/Cookie-AutoDelete | src/ui/popup/index.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as vs from \"vscode\";\n\nexport function showCode(editor: vs.TextEditor, displayRange: vs.Range, highlightRange: vs.Range, selectionRange?: vs.Range): void {\n\tif (selectionRange)\n\t\teditor.selection = new vs.Selection(sele... | typescript | edit | 0 | 2 | mit | cf79ce75cd616e6cf9c43bd866d76c9ff6c6bea1 | Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code | src/extension/utils/vscode/editor.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\ninterface IAssertionErrorOptions {\n\tmessage: string;\n\texpected?: Object;\n\tactual?: Object;\n\tshowDiff?: boolean;\n}\n\nexport default function ({ message, expected, actual, showDiff }: IAssertionErrorOptions): Error {\n\tconst er... | typescript | edit | 0 | 1 | mit | 3a72c2099cf61dc26b96b6ab7bb3a3f29fed4d3f | dylanparry/ceylon,dylanparry/ceylon | src/assertion-error.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Category } from './category.model';\n\nexport const CATEGORIES: Category[] = [\n {\n \"id\": \"AudioVideo\",\n \"name\": \"Audio & Video\"\n },\n {\n \"id\": \"Development\",\n \"name\": \"Development\"\n },\n ... | typescript | edit | 0 | 0 | apache-2.0 | b5044e0050a7bf238b6f7c643b189fe8d89d6166 | jgarciao/linux-store-frontend,jgarciao/linux-store-frontend,jgarciao/linux-store-frontend | src/app/shared/categories.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\ninterface WebpackRequireEnsureCallback {\n\t(req: WebpackRequire): void\n}\n\ninterface WebpackRequire {\n\t(id: string): any;\n\t(paths: string[], callback: (...modules: any[]) => void): void;\n\tensure(ids: string[], callback: Webpack... | typescript | edit | 0 | 0 | mit | 15ba173abe2476cdc5d8f0d22f37430c18b95f6f | gamejolt/frontend-lib,gamejolt/frontend-lib,gamejolt/frontend-lib,gamejolt/frontend-lib | typings/webpack.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// The file contents for the current environment will overwrite these during build.\n// The build system defaults to the dev environment which uses `environment.ts`, but if you do\n// `ng build --env=prod` then `environment.prod.ts` wil... | typescript | edit | 0 | 0 | mit | 08c446a8a68eb94afd5c8a01dae409e138da55e3 | tsmean/tsmean,tsmean/tsmean,tsmean/tsmean,tsmean/tsmean | frontend/src/environments/environment.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { parse } from './ast';\nimport { emitString } from './emitter';\nimport {\n transform,\n TypeInjectorTransformer,\n FunctionBlockTransformer,\n MethodChainTransformer,\n AnonymousFunctionTransformer\n} from './transformers'... | typescript | edit | 0 | 1 | mit | a7b70ce21bd5b5856a497a101a37cb1cefc7bfd5 | AmnisIO/typewriter,AmnisIO/typewriter,AmnisIO/typewriter | src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {\n AbstractDevice,\n DeviceParams,\n DeviceParamsModel,\n DeviceParamType,\n DeviceType,\n RawDevice\n} from './abstract-device';\nimport { _ } from '@biesbjerg/ngx-translate-extract/dist/utils/utils';\n\nexport class Devi... | typescript | edit | 0 | 2 | apache-2.0 | 4ce4bcd77abc41dca870dcddfc12b4547e901b7d | openradiation/openradiation-mobile,openradiation/openradiation-mobile,openradiation/openradiation-mobile,openradiation/openradiation-mobile | src/app/states/devices/device-og-kit.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport default class Utils {\n public static getPlatformConfig(platformId: string): any {\n const config = require(`../platforms/${platformId}/config.json`);\n return config;\n }\n}\n```\n\nApply this change: Add hel... | typescript | edit | 0 | 1 | mit | d9d3661ff654e97a3f4052963797d4ed2a412eae | schulcloud/node-notification-service,schulcloud/node-notification-service,schulcloud/node-notification-service | src/utils.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * @file The primary entry for Framewerk.\n *\n * @author Justin Toon\n * @license MIT\n *\n * @requires ./prototypes/fw.controller.js:Controller\n * @requires ./prototypes/fw.plugin.js:Plugin\n */\n\nimport { Controller, Plugin } ... | typescript | edit | 0 | 2 | mit | dd8d0ba0aeb6099e94af3fc27331485626344208 | overneath42/framewerk | src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport interface State {\n inputText: string\n alphabets: Array<Alphabet>\n}\n\nexport interface Alphabet {\n priority: number\n letters: Array<Letter>\n}\n\nexport interface Letter {\n value: string\n block: string\n}\n\nexport i... | typescript | edit | 0 | 0 | mit | 28ff5e1e3fa570a1e80db17a9532dd1bac4f2bb4 | rossjrw/gallifreyo,rossjrw/gallifreyo,rossjrw/gallifreyo | src/types.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n#!/usr/bin/env node\n\nconsole.log(\"vim-js-alternate: initialized\");\n\nimport ProjectionLoader from \"./ProjectionLoader\";\nimport { ProjectionResolver } from \"./ProjectionResolver\";\n\nvar Vim = require(\"vim-node-driver\");\nvar... | typescript | edit | 0 | 3 | mit | 34b818bef0be07779e40f6bd359f6ccb07a0fbca | extr0py/vim-js-alternate,extr0py/vim-js-alternate | src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {\n it,\n inject,\n injectAsync,\n beforeEachProviders,\n TestComponentBuilder\n} from 'angular2/testing';\n\n// Load the implementations that should be tested\nimport {App} from './app';\nimport {countTotal} from './lib/uti... | typescript | edit | 0 | 2 | mit | 176cd5c61e198d1ed172d10fa0abe8c2b6f53dad | bluebirrrrd/ng2-budget,bluebirrrrd/ng2-budget,bluebirrrrd/ng2-budget | src/app/app.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport useUrlState, { Options } from '@ahooksjs/use-url-state'\n\ninterface ExtOptions<T> {\n arrayNames?: string[]\n numberNames?: string[]\n booleanNames?: string[]\n}\n\nexport function useSearch<T>(initialState?: T, options?: Opt... | typescript | edit | 0 | 3 | apache-2.0 | 3fd69d677212d664ab200432d0ef25573f480621 | mingzuozhibi/mzzb-ui,mingzuozhibi/mzzb-ui,mingzuozhibi/mzzb-ui,mingzuozhibi/mzzb-ui | src/commons/hooks/useSearch.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { symlinkOrReplaceFilesInFolderSync } from '../util/files';\nimport * as fs from 'fs';\nimport * as logHelper from '../util/log-helper';\nimport * as path from 'path';\n\nexport function install(): void {\n if (process.platform ... | typescript | edit | 0 | 3 | mit | 9db4dc352013e5352ff3737ea3aefe917b0fe871 | Tyriar/dotfiles,Tyriar/dotfiles,Tyriar/dotfiles | src/modules/pwsh.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, OnInit, HostListener } from '@angular/core';\n\n@Component({\n selector: 'app-site',\n templateUrl: './site.component.html',\n styleUrls: ['./site.component.css']\n})\nexport class SiteComponent implements OnInit ... | typescript | edit | 0 | 2 | mit | 1fe0e6e1bd666da79d4dd1886fce7ace18061295 | railsstudent/angular-30,railsstudent/angular-30,railsstudent/angular-30 | Day13-Slide-In-On-Roll/Day13-Slide-In-On-Roll/src/app/site/site.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { fakeAsync, inject, TestBed } from '@angular/core/testing'\nimport { BaseRequestOptions, ConnectionBackend, Http, RequestOptions, Response, ResponseOptions } from '@angular/http'\nimport { MockBackend } from '@angular/http/testi... | typescript | edit | 0 | 2 | mit | 889ac359b590168a66c7cc980778cbf2e292cb7d | hckhanh/tour-of-heroes,hckhanh/tour-of-heroes,hckhanh/tour-of-heroes | src/app/hero-search.service.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as express from 'express';\nimport context from '../../remote/activitypub/renderer/context';\nimport render from '../../remote/activitypub/renderer/key';\nimport User from '../../models/user';\n\nconst app = express.Router();\n... | typescript | edit | 0 | 2 | mit | 5fb08b0ba198f3709a3543549223093826f64e93 | Tosuke/misskey,syuilo/Misskey,syuilo/Misskey,ha-dai/Misskey,Tosuke/misskey,Tosuke/misskey,Tosuke/misskey,Tosuke/misskey,ha-dai/Misskey | src/server/activitypub/publickey.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\n\ntype AccordionProps = React.HTMLAttributes<HTMLDivElement> & {\n accordion: boolean;\n};\n\nconst Accordion = ({ accordion, ...rest }: AccordionProps): JSX.Element => {\n const role = accordion ?... | typescript | edit | null | null | mit | c26f113b52108351f40ffd2caef63bbcc6118ea5 | springload/react-accessible-accordion,springload/react-accessible-accordion,springload/react-accessible-accordion | src/Accordion/Accordion.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {keyBy} from './Util'\nconst fuzzysort = require(\"fuzzysort\")\n\nexport default class FuzzySearch<T> {\n strings: string[]\n datamap: any\n\n constructor(data: T[], key: string) {\n this.datamap = keyBy(data, ke... | typescript | edit | 0 | 1 | mit | 62a3f060f50b5b005959353aa931ec411bbfde0f | aaldaber/owid-grapher,owid/owid-grapher,OurWorldInData/owid-grapher,aaldaber/owid-grapher,aaldaber/owid-grapher,OurWorldInData/owid-grapher,OurWorldInData/owid-grapher,OurWorldInData/our-world-in-data-grapher,aaldaber/owid-grapher,OurWorldInData/our-world-in-data-grapher,OurWorldInData/owid-grapher,owid/owid-grapher,ow... | js/charts/FuzzySearch.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\n\n@Component({\n selector: 'my-app',\n moduleId: module.id,\n templateUrl: 'app.template.html'\n})\nexport class AppComponent { }\n```\n\nApply this change: Use import for app templa... | typescript | edit | 0 | 0 | mit | 36b5c266fccaf78a3d799ad2eb1820e3db5cd2c7 | MattJeanes/AngularBasic,MattJeanes/AngularBasic,MattJeanes/AngularBasic,MattJeanes/AngularBasic | AngularBasic/wwwroot/app/app.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport let changeFormattedStatus = (status: string) => {\n if(!status) return null;\n if (status.indexOf(\"상승\") != -1 || status.indexOf(\"+\") != -1) {\n return \"up\";\n } else if (status.indexOf(\"하락\") != -1 || statu... | typescript | edit | 0 | 6 | mit | 3673f77bf4a8629ca95bc5c436e298d15313b0be | endlessdev/rankr,endlessdev/rankr | utils/Formatter.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport { Observable } from 'rxjs';\nimport Message from '../model/Message';\nimport Track from '../model/Track';\nimport { regexExt, regexM3U } from '../filters';\nimport FoundList from './FoundList';\ni... | typescript | edit | null | null | mit | 0e5a8a8ffcf231eb0c3a8b93319cc579f2f69aaf | soflete/extereo,soflete/extereo | src/components/Found.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 { Small, Text } from 'rebass';\nimport InfoPane from 'game/components/InfoPane';\nimport { Player, User, Values } from '@battles/models';\nimport { userInfo } from 'os';\n\ntype PlayerInfoProps = ... | typescript | edit | null | null | mit | a9c9d70b213a2e27c53fbb41dd1ffaef759fb7fb | tomwwright/graph-battles,tomwwright/graph-battles,tomwwright/graph-battles | packages/game/src/game/components/PlayerInfo.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Client, CommandInteraction } from \"discord.js\";\n\nexport class Utilities {\n\n public constructor(private readonly client: Client) { }\n\n public link = async (interaction: CommandInteraction) => {\n const link ... | typescript | edit | 0 | 5 | mit | 577753c0bdd60362f661f9d19dffd095125e8837 | Armos-Games/Echo | src/utilities.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as ng from './angular2';\n// the router should have its own SFX bundle\n// But currently the module arithmetic 'angular2/router_sfx - angular2/angular2',\n// is not support by system builder.\nimport * as router from './router'... | typescript | edit | 0 | 1 | mit | 283415beab7ee4a5b12d8a74daca1f053e23038d | caffeinetiger/angular,vicb/angular,trshafer/angular,matsko/angular,ttowncompiled/angular,aaron-goshine/angular,cassand/angular,hess-google/angular,shairez/angular,jasonaden/angular,vandres/angular,angular/angular,tamascsaba/angular,Tragetaschen/angular,nosachamos/angular,juleskremer/angular,Alireza-Dezfoolian/angular,a... | modules/angular2/angular2_sfx.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport { Redirect, Route, RouteProps } from 'react-router-dom';\n\nimport Loading from '../page/Loading';\n\ntype SuspendedComponent = typeof React.Component | React.LazyExoticComponent<React.ComponentType>;\... | typescript | edit | null | null | mit | 127325ecb03e36584dc0fd46c984d3344272b8ec | benct/tomlin-web,benct/tomlin-web | app/scripts/components/route/Suspended.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport HEREMap from '../src/HEREMap';\nimport * as chai from 'chai';\nimport * as sinon from 'sinon';\nimport { mount, shallow } from 'enzyme';\nimport * as React from 'react';\n\ndescribe('<HEREMap />', () => {\n\n it('should call c... | typescript | edit | null | null | mit | 355ff08e7fd4dcb178694b2920fd5ba204378208 | Josh-ES/react-here-maps,Josh-ES/react-here-maps | test/HEREMap.tests.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as m from 'mithril';\n\nimport Layout from 'components/layout';\nimport HomePage from 'pages/home';\n// import RoutesPage from 'pages/routes';\nimport PagesPage from 'pages/pages';\nimport PagePage from 'pages/page';\nimport Lo... | typescript | edit | 0 | 1 | apache-2.0 | dc28200886abf51cefa597a17267c969793bea26 | ketchuphq/ketchup,ketchuphq/ketchup,ketchuphq/ketchup,ketchuphq/ketchup,ketchuphq/ketchup | admin/src/js/app.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport artyomjs = require('artyom.js');\n\nconst artyom = artyomjs.ArtyomBuilder.getInstance();\n\n@Injectable()\nexport class VoiceService {\n constructor() {\n // Get an unique ArtyomJS... | typescript | edit | 0 | 1 | mit | 751d62f275a4f55d4994fa50101cbc0e027594ea | ABAPlan/abaplan-core,ABAPlan/abaplan-core,ABAPlan/abaplan-core | app/touchpad/voice.service.ts | rejected_duplicate | Near-duplicate of sample 114054 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Routes, RouterModule} from '@angular/router';\nimport {ModuleWithProviders} from '@angular/core';\n\nimport {HomeComponent} from './home/home.component';\nimport {ResultsComponent} from './results/results.component';\nimport {Ab... | typescript | edit | 0 | 0 | bsd-3-clause | 774dc6c77c66c242fb59cdc42da6f641a3281377 | UoA-eResearch/research-hub,UoA-eResearch/research-hub,UoA-eResearch/research-hub | src/app/app.routing.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, Inject, Optional } from '@angular/core';\n\nimport { TubularGrid } from './grid.component';\nimport { SETTINGS_PROVIDER, ITubularSettingsProvider } from './tubular-settings.service';\n\n@Component({\n s... | typescript | edit | 0 | 0 | mit | 1c0b146b6b0c968c10c1436abec99d9c336a1458 | unosquare/tubular2,unosquare/tubular2,unosquare/tubular2,unosquare/tubular2 | src/lib/grid-search.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n'use strict';\n\nmodule TourabuEx.content {\n chrome.runtime.sendMessage({\n type: 'content/load',\n body: {}\n });\n\n chrome.runtime.onMessage.addListener((mes, sender, callback) => {\n if (mes.type === ... | typescript | edit | 0 | 2 | mit | df8adc44284fb08d86f70695aeea28720f391c73 | ayachigin/tourabu-extension,ayachigin/tourabu-extension,ayachigin/tourabu-extension | app/ts/tourabu_content.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Hook, HttpResponseBadRequest, ObjectType } from '@foal/core';\nimport * as Ajv from 'ajv';\n\nconst defaultInstance = new Ajv();\n\nexport function validate(schema: ObjectType, ajv = defaultInstance): Hook {\n const isValid = ... | typescript | edit | 0 | 2 | mit | 70222568f8ece6153b878ff82d021e3699460a75 | FoalTS/foal,FoalTS/foal,FoalTS/foal,FoalTS/foal | packages/ajv/src/validate.pre-hook.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, h, State } from '@stencil/core'\nimport { CHANNEL } from '../../../../preload/index'\nimport { getAvailablePlugins, pluginStore } from './pluginStore'\nimport { i18n } from '../../../../i18n'\n\n@Component({\n tag: ... | typescript | edit | null | null | apache-2.0 | fa4bc79cecb2488032c5e581f8b1227d00a712a3 | stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila | desktop/src/renderer/components/app-settings/app-settings-plugins/app-settings-plugins.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Load the SDK and UUID\nimport * as AWS from 'aws-sdk'\nimport * as uuid from 'uuid'\n\n// Create an S3 client\nconst s3 = new AWS.S3()\n\n// Create a bucket and upload something into it\nconst bucketName = `node-sdk-check-${uuid.v4()... | typescript | edit | 0 | 2 | mit | 1ab0617ad981be6bbb38881c378902aebab1b62e | go-westeros/aws-devops | cli-access-check.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/*\neslint\n@typescript-eslint/no-explicit-any: 0\n*/\nexport interface FeathersVuexOptions {\n serverAlias: string\n addOnUpsert?: boolean\n autoRemove?: boolean\n debug?: boolean\n diffOnPatch?: boolean\n enableEvents?: boolean\... | typescript | edit | 0 | 0 | mit | 449346c169c231874f89010034e9b6d1d0489660 | feathers-plus/feathers-vuex,feathers-plus/feathers-vuex | src/service-module/types.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { runBenchmarks } from './support/runner';\nimport { BenchmarkConfig, BenchmarkFactories } from './support/async-bench';\nimport { QUERY_BENCHMARKS } from './profiling/query-pipeline.perf';\nimport { COMPARISON } from './comparis... | typescript | edit | 0 | 2 | mit | e5edd900d2fbf36eb0fbe3747574740451631543 | AEB-labs/graphql-weaver,AEB-labs/graphql-weaver | spec/performance/performance-suite.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { async, ComponentFixture, TestBed } from '@angular/core/testing';\nimport { RouterTestingModule } from '@angular/router/testing';\n\nimport { TitleService } from '../shared/title.service';\nimport { MockTitleService } from '../s... | typescript | edit | 0 | 1 | apache-2.0 | 877237181394a1c9b0d66c9fddbe2d83bae804c5 | jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog | src/app/error/error.component.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// TODO: Add tests\n\nfunction signCharacter(value: number): string {\n return value < 0 ? '− ' /* U+2212 U+202F */ : '';\n}\n\n// Prints an integer padded with leading zeroes\nexport function formatInteger(value: number, padding: numb... | typescript | edit | 0 | 2 | apache-2.0 | 5ec570b4ab8ac27c0e4739c2cd586f7d8b0ed9b3 | sth-larp/deus-mobile,sth-larp/deus-mobile,sth-larp/deus-mobile,sth-larp/deus-mobile,sth-larp/deus-mobile | src/utils/string-utils.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport * from './types'\n\nexport * from './clone'\nexport * from './hasOwnProperty'\nexport * from './invoker'\nexport * from './isEmpty'\nexport * from './keys'\nexport * from './length'\nexport * from './lensPath'\nexport * from './l... | typescript | edit | 0 | 0 | mit | 125ac71d6c5519fa2e882a9232a124d026d3f86a | TylorS/typed,TylorS/typed | packages/objects/src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * Execute a command cross-platform.\n *\n * @param {string} cmd command to execute e.g. `\"npm\"`\n * @param {any[]} [args] command argument e.g. `[\"install\", \"-g\", \"git\"]`\n * @param {Partial<crossSpawnPromise.CrossSpawnOpt... | typescript | edit | 0 | 0 | mit | 6ef495c83fa8837976e76b2055b01820e0cef20f | zentrick/cross-spawn-promise | index.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, OnInit, Inject, ViewChild } from '@angular/core';\nimport { SketchpadComponent } from '../sketchpad/components/sketchpad/sketchpad.component';\nimport { AngularFire, FirebaseRef } from 'angularfire2';\n\n@Component({... | typescript | edit | 0 | 1 | mit | 267af79fd179a2cdb05fc126adcb34781f128fc9 | jonas99y/pythagorasvo21,jonas99y/pythagorasvo21,jonas99y/pythagorasvo21 | src/app/drawing/drawing.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport addons, { types } from '@storybook/addons';\nimport { AddonPanel } from '@storybook/components';\nimport { API } from '@storybook/api';\nimport { ControlsPanel } from './components/ControlsPanel';\nimp... | typescript | edit | null | null | mit | fc0f6bea522c58cf1c42325b2377a754572277d9 | storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,kadirahq/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook | addons/controls/src/register.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { HandleRequest } from '@jovotech/framework';\nimport { JovoDebugger, JovoDebuggerConfig } from './JovoDebugger';\n\ndeclare module '@jovotech/framework/dist/types/Extensible' {\n interface ExtensiblePluginConfig {\n JovoDebu... | typescript | edit | 0 | 0 | apache-2.0 | 4b59ddc3a0bb5859b6e35af043692e0f0332b40b | jovotech/jovo-framework-nodejs,jovotech/jovo-framework-nodejs | integrations/plugin-debugger/src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Css from '../properties/Css';\nimport Dimension from '../../impl/Dimension';\nimport Element from '../node/Element';\n\nvar api = Dimension('width', function (element: Element) {\n // IMO passing this function is better than usi... | typescript | edit | 0 | 1 | mit | 06fe1cc070d4366bc72d0da75f871b1ef230ca91 | tinymce/tinymce,FernCreek/tinymce,tinymce/tinymce,TeamupCom/tinymce,FernCreek/tinymce,tinymce/tinymce,FernCreek/tinymce,TeamupCom/tinymce | src/main/ts/ephox/sugar/api/view/Width.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n\nimport { famrwareReducer } from \"../reducer\";\nimport { FarmwareState } from \"../interfaces\";\nimport { Actions } from \"../../constants\";\nimport { fakeImage } from \"../../__test_support__/fake_state/resources\";\n\ndescribe(\"... | typescript | edit | 0 | 1 | mit | 8c0bb4e883c03d30507661e7347ad2ad48056b4e | gabrielburnworth/Farmbot-Web-App,gabrielburnworth/Farmbot-Web-App,RickCarlino/farmbot-web-app,RickCarlino/farmbot-web-app,FarmBot/Farmbot-Web-API,gabrielburnworth/Farmbot-Web-App,RickCarlino/farmbot-web-app,FarmBot/farmbot-web-app,FarmBot/Farmbot-Web-API,FarmBot/Farmbot-Web-API,RickCarlino/farmbot-web-app,gabrielburnwo... | webpack/farmware/__tests__/reducer_test.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport class MapField {\n label: string;\n namespace: string;\n name: string;\n uri: string;\n guidelines: string;\n source: string;\n definition: string;\n obligation: string;\n range: any;\n repeatable: boolean;\n input: st... | typescript | edit | 0 | 0 | mit | c0bb083d1fcd3af5cea489108de5a514a166bb4f | uhlibraries-digital/brays,uhlibraries-digital/brays,uhlibraries-digital/brays | app/shared/map-field.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from \"react\"\nimport * as Relay from \"react-relay/classic\"\nimport * as removeMarkdown from \"remove-markdown\"\n\nimport { Dimensions, StyleSheet, View, ViewProperties } from \"react-native\"\n\nimport SerifText f... | typescript | edit | null | null | mit | fe996b6f28015c8e5e4de88efc349f79f14e8327 | artsy/eigen,artsy/eigen,artsy/emission,artsy/emission,artsy/emission,artsy/emission,artsy/emission,artsy/emission,artsy/emission,artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen | src/lib/Components/Gene/Biography.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {SimpleDiff, DiffOptions, NoDiff, NumberInput, BooleanInput} from '../types'\n\nexport function diffSimple<A, I extends NumberInput<A> | BooleanInput<A>>(\n fromInput: I,\n toInput: I,\n options: DiffOptions\n): SimpleDiff<A> ... | typescript | edit | 0 | 0 | mit | 7f6e56fdcf3dcead2cb7f1fd11cb41fd10084824 | sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity | packages/@sanity/diff/src/calculate/diffSimple.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nrequire(\"../bootstrap\");\n$injector.require(\"projectConstants\", \"./appbuilder/project-constants\");\n$injector.require(\"projectFilesProvider\", \"./appbuilder/providers/project-files-provider\");\n$injector.require(\"pathFiltering... | typescript | edit | 0 | 0 | apache-2.0 | 926dd6e83da4d45702f7940c55978568568deb86 | telerik/mobile-cli-lib,telerik/mobile-cli-lib | appbuilder/appbuilder-bootstrap.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport MarkdownTheme from 'typedoc-plugin-markdown/dist/theme';\nimport { Renderer } from 'typedoc/dist/lib/output/renderer';\n\nimport { DocsaurusFrontMatterComponent } from './front-matter-component';\n\nexport default class Docusauru... | typescript | edit | 0 | 1 | mit | 5c080d2585915d85e8404ed06532dbe47f5887c1 | tgreyuk/typedoc-plugin-markdown,tgreyuk/typedoc-plugin-markdown | packages/docusaurus-plugin-typedoc/src/theme/theme.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, OnInit } from '@angular/core';\nimport { PlantListService } from \"./plant-list.service\";\nimport { Plant } from \"./plant\";\nimport { FilterBy } from \"./filter.pipe\";\nimport {Params, ActivatedRoute} from \"@ang... | typescript | edit | 0 | 1 | mit | abcae859a91690217f608cf4b0c7d489b1c27edf | UMM-CSci-3601-S17/digital-display-garden-iteration-3-dorfner,UMM-CSci-3601-S17/digital-display-garden-iteration-4-dorfner-v2,UMM-CSci-3601-S17/digital-display-garden-iteration-3-dorfner,UMM-CSci-3601-S17/digital-display-garden-iteration-4-dorfner-v2,UMM-CSci-3601-S17/digital-display-garden-iteration-4-dorfner-v2,UMM-CS... | client/src/app/plants/bed.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { ABTest } from './abTestImpl';\n\n// An A/B test which doesn't do anything (other than randomize you), for testing\n// the A/B test infrastructure.\nexport const noEffectABTest = new ABTest({\n name: \"abTestNoEffect\",\n desc... | typescript | edit | 0 | 0 | mit | 9b92c517fc500f3f5cbbd1fbad40cea602f201df | Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2 | packages/lesswrong/lib/abTests.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Int, periodic } from '@amnisio/rivulet';\nimport { Sources, HIGH, LOW, run, createSinks } from '@amnisio/arduino-uno';\n\n// Initialize brightness and change\nlet brightness = 0;\nlet change = 5;\n\nconst getCurrentBrightness =... | typescript | edit | 0 | 3 | mit | 62ff0a3dc2076f80c8dbeacb615e3fd513510671 | artfuldev/RIoT | examples/arduino-uno/fade.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path=\"MonitoredSocket.ts\" />\nimport MonitoredSocket = require(\"./MonitoredSocket\");\nimport http = require(\"http\");\nimport fs = require(\"fs\");\nvar config = require(\"./config\");\n\nvar listenIp: string = conf... | typescript | edit | 0 | 2 | mit | ab9caa459f236a7c921042e9044859340829ea9e | OzuYatamutsu/is-my-server-up,OzuYatamutsu/is-my-server-up,OzuYatamutsu/is-my-server-up | app.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Match, RouteConfig } from \"found\"\n\nexport const findCurrentRoute = ({\n routes,\n routeIndices,\n}: Match & { route?: RouteConfig }) => {\n let remainingRouteIndicies = [...routeIndices]\n let route: RouteConfig = route... | typescript | edit | 0 | 4 | mit | c16422676ee1d4b7abe4fa41ff357f0bbe263b47 | artsy/reaction-force,artsy/reaction-force,artsy/reaction,artsy/reaction,artsy/reaction | src/Artsy/Router/Utils/findCurrentRoute.tsx | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\n\nexport interface FilterDropdownMenuWrapperProps {\n onClick?: React.MouseEventHandler<any>;\n children?: any;\n className?: string;\n}\n\nexport default (props: FilterDropdownMenuWrapperProps) => (\... | typescript | edit | null | null | mit | df8b784158b0564e0ed24686cda9bfb7bac87215 | zheeeng/ant-design,elevensky/ant-design,elevensky/ant-design,icaife/ant-design,icaife/ant-design,elevensky/ant-design,icaife/ant-design,elevensky/ant-design,ant-design/ant-design,ant-design/ant-design,icaife/ant-design,ant-design/ant-design,zheeeng/ant-design,ant-design/ant-design,zheeeng/ant-design,zheeeng/ant-design | components/table/FilterDropdownMenuWrapper.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { CylinderBufferGeometry } from './CylinderBufferGeometry';\n\nexport class ConeBufferGeometry extends CylinderBufferGeometry {\n\n\t/**\n\t * @param [radius=1] — Radius of the cone base.\n\t * @param [height=1] — Height of the c... | typescript | edit | 0 | 0 | mit | 7fac5aa010769750c040ae8ced46bb9fb0ab418e | gero3/three.js,greggman/three.js,gero3/three.js,makc/three.js.fork,greggman/three.js,aardgoose/three.js,jpweeks/three.js,kaisalmen/three.js,mrdoob/three.js,06wj/three.js,fyoudine/three.js,WestLangley/three.js,fyoudine/three.js,Liuer/three.js,donmccurdy/three.js,makc/three.js.fork,looeee/three.js,Liuer/three.js,06wj/thr... | src/geometries/ConeBufferGeometry.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Mithril from 'mithril';\n\n/**\n * Generates a route resolver for a given component.\n * In addition to regular route resolver functionality:\n * - It provide the current route name as an attr\n * - It sets a key on the component... | typescript | edit | 0 | 1 | mit | 9f5737eb931b4682b78a556231932ff6755f5141 | flarum/core,flarum/core,flarum/core | js/src/common/resolvers/DefaultResolver.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as vscode from 'vscode';\nimport * as client from './client';\n\nexport function activate(context: vscode.ExtensionContext) {\n context.subscriptions.push(client.launch(context));\n}\n\nexport function deactivate() {\n}\n\n```... | typescript | edit | 0 | 3 | apache-2.0 | 68305b299db4201e10406d52e458621e64254bce | freebroccolo/vscode-reasonml,freebroccolo/vscode-reasonml | src/extension.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 * as React from 'react';\n\nlet shell: Electron.Shell = (window as any).require('electron').remote.shell;\n\nexport\nnames... | typescript | edit | null | null | bsd-3-clause | 516c18cc093535ddf354ee638c91a9ecab0d5342 | nproctor/jupyterlab_app,nproctor/jupyterlab_app,nproctor/jupyterlab_app | src/browser/components/error/servererror.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/* eslint-disable */\n/////////////////////////////////////////////////////////////////////////////////////////\n// //\n// !!! DO NOT EDIT THIS FILE !!!... | typescript | edit | 0 | 0 | mit | 56b7f01038040008ccc1355733d6f5bfac2f2f7e | slackapi/node-slack-sdk,slackapi/node-slack-sdk,slackapi/node-slack-sdk,slackapi/node-slack-sdk | packages/web-api/src/response/AdminEmojiListResponse.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Color } from './../math/Color';\nimport { Texture } from './../textures/Texture';\nimport { Vector2 } from './../math/Vector2';\nimport { MaterialParameters, Material } from './Material';\nimport { NormalMapTypes } from '../con... | typescript | edit | 0 | 1 | mit | d5b2a77aa152e62156c31596d37de9af3ab37580 | TristanVALCKE/three.js,stanford-gfx/three.js,WestLangley/three.js,06wj/three.js,WestLangley/three.js,looeee/three.js,QingchaoHu/three.js,SpinVR/three.js,mrdoob/three.js,jee7/three.js,sherousee/three.js,Samsy/three.js,fraguada/three.js,fyoudine/three.js,06wj/three.js,jee7/three.js,Itee/three.js,jpweeks/three.js,SpinVR/t... | src/materials/MeshMatcapMaterial.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add component for cloning GitHub repos"
},
{
"role": "assistant",
"content": "import * as React from 'react'\nimport { getDefaultDir } from '../lib/default-dir'\nimport { DialogContent } from '../dialog'\nimport { TextBox } f... | typescript | new_file | null | null | mit | b0648fff1eac4b470f077b13738a6a84618f4a2e | say25/desktop,desktop/desktop,shiftkey/desktop,shiftkey/desktop,shiftkey/desktop,gengjiawen/desktop,hjobrien/desktop,kactus-io/kactus,gengjiawen/desktop,say25/desktop,j-f1/forked-desktop,j-f1/forked-desktop,hjobrien/desktop,kactus-io/kactus,artivilla/desktop,kactus-io/kactus,say25/desktop,artivilla/desktop,desktop/desk... | app/src/ui/clone-repository/github-clone.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/*\n * Copyright 2013 Palantir Technologies, 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... | typescript | edit | 0 | 4 | apache-2.0 | 0dd93322e88d0be0d9cda9fa1746a81b991c24c6 | pspeter3/tslint,RyanCavanaugh/tslint,andy-ms/tslint,Nemo157/tslint,vmmitev/tslint,lukeapage/tslint,Kuniwak/tslint,aciccarello/tslint,berickson1/tslint,Pajn/tslint,spirosikmd/tslint,spirosikmd/tslint,weswigham/tslint,Kuniwak/tslint,berickson1/tslint,prendradjaja/tslint,weswigham/tslint,s-panferov/tslint,ScottSWu/tslint,... | src/rules/eoflineRule.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nmodule app.core.metaschema {\n\n import IHttpPromise = angular.IHttpPromise;\n import IPromise = angular.IPromise;\n import IQService = angular.IQService;\n import IDeferred = angular.IDeferred;\n import DataschemaService... | typescript | edit | 0 | 1 | mit | 0f99b872a2d0df6dccebad1de1434114ecd3ac57 | FelixThieleTUM/JsonFormsEditor,eclipsesource/JsonFormsEditor,eclipsesource/JsonFormsEditor,pancho111203/JsonFormsEditor,pancho111203/JsonFormsEditor,FelixThieleTUM/JsonFormsEditor,eclipsesource/JsonFormsEditor,FelixThieleTUM/JsonFormsEditor,FelixThieleTUM/JsonFormsEditor,eclipsesource/JsonFormsEditor,pancho111203/JsonF... | app/src/components/core/metaschema/metaSchema.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { DimItem } from '../item-types';\n\nlet _idTracker: { [id: string]: number } = {};\n\nexport function resetItemIndexGenerator() {\n _idTracker = {};\n}\n\n/** Set an ID for the item that should be unique across all items */\nex... | typescript | edit | 0 | 3 | mit | 4611cf546fcf3401c017d9bb27d6952a32d012d0 | DestinyItemManager/DIM,DestinyItemManager/DIM,DestinyItemManager/DIM,DestinyItemManager/DIM | src/app/inventory/store/item-index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { logger, debugStream, winstonStream } from '../../src/core/logger';\n\ndescribe('Core:Logger', () => {\n describe('debugStream', () => {\n it('Should has a write property', () => {\n expect(debugStream.strea... | typescript | edit | 0 | 1 | mit | 09b55877abb6ed1a90e9918509d0b3e5ecf59c2f | w3tecch/express-graphql-typescript-boilerplate,w3tecch/node-ts-boilerplate,w3tecch/node-ts-boilerplate,w3tecch/express-graphql-typescript-boilerplate | test/core/logger.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {EnvConfig} from './env-config.interface';\n\nconst ProdConfig: EnvConfig = {\n ENV: 'PROD',\n API: 'https://d4el2racxe.execute-api.us-east-1.amazonaws.com/mock',\n AWS_REGION: 'us-east-1',\n COGNITO_USERPOOL: 'us-east-1_0UqE... | typescript | edit | 0 | 0 | mit | fe02c75338a51bf7961075c6776e3e29683b9358 | formigio/angular-frontend,formigio/angular-frontend,formigio/angular-frontend | tools/env/prod.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport {Spinner} from '../material/spinner'\nimport style from './loading.css'\n\nexport function Loading() {\n return (\n <div className={style.container}>\n <Spinner />\n </div>\n )\n}\n\n`... | typescript | edit | null | null | mit | f84eaa861e55b5e258016c9c88e2b7bd2c03ec25 | Holi0317/bridge-calc,Holi0317/bridge-calc,Holi0317/bridge-calc | src/lazy-views/loading.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/*\nCopyright 2017 Google Inc.\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 http://www.apache.org/... | typescript | edit | 0 | 0 | apache-2.0 | d24c0b40961b585800b499edd0748fea27ae3f99 | conversationai/conversationai-moderator,conversationai/conversationai-moderator,conversationai/conversationai-moderator,conversationai/conversationai-moderator | packages/backend-api/src/processing/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { createRoot } from 'react-dom/client'\n\nimport { App } from './App'\n\ndescribe('App', () => {\n test('renders', () => {\n const container = document.createElement('div')\n const root = createRoot(container)\n\n root.... | typescript | edit | null | null | mit | f48a6085733d23eaf0933126a1ace928af007ae7 | joelgeorgev/react-checkbox-tree,joelgeorgev/react-checkbox-tree | src/App.test.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path=\"../../typings/browser.d.ts\" />\n\nimport {LoadingService} from \"../../src/Viewer\";\n\ndescribe(\"LoadingService\", () => {\n var loadingService: LoadingService;\n\n beforeEach(() => {\n loadingServi... | typescript | edit | 0 | 1 | mit | 983bbfb026a1eb56362fadf6a60a19815bdc22ff | mapillary/mapillary-js,mapillary/mapillary-js | spec/viewer/LoadingService.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Component, OnInit} from '@angular/core';\nimport {AwsService} from '../../services/aws-service';\nimport {ActivatedRoute, Router} from '@angular/router';\n\n@Component({\n selector: 'app-login',\n templateUrl: './login.com... | typescript | edit | 0 | 2 | mit | d7e60a2185259a6d46d2e9f055b8909d1ba52e26 | tadashi-aikawa/gemini-viewer,tadashi-aikawa/gemini-viewer,tadashi-aikawa/gemini-viewer | src/app/components/login/login.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { RunDuration } from '../run-duration';\nimport { MongooseRunStatus } from '../mongoose-run-status';\n\nexport interface MongooseRunRecord { \n status: MongooseRunStatus; \n startTime: String;\n Nodes: String[]; \n Du... | typescript | edit | 0 | 1 | mit | f986d6129c8c50b193aacf9a23de1f11be40bb34 | emc-mongoose/console,emc-mongoose/console,emc-mongoose/console | src/app/core/models/run-record.model.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport const views: Object[] = [\n {\n name: 'Dashboard',\n icon: 'home',\n link: ['']\n },\n {\n name: 'Lazy',\n icon: 'file_download',\n link: ['lazy']\n },\n {\n name: 'Sync',\n icon: 'done',\n link:... | typescript | edit | 0 | 0 | mit | aa986c84d5053d6f9d0883c00a66dcfe2b82024c | fioletti-smeup/ng-smeup,fioletti-smeup/ng-smeup,fioletti-smeup/ng-smeup | src/app/app-nav-views.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/*\n * searchoption.js\n *\n * encapsulates a search option\n */\n\n\"use strict\";\n\ninterface SettingsFunc {\n (): void;\n}\n\nexport class SearchOption {\n shortarg: string;\n longarg: string;\n desc: string;\n func: ... | typescript | edit | 0 | 2 | mit | 544fdf23bf013ef7202b085a9796a1fbd9523b0e | clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch | typescript/tssearch/src/searchoption.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Component from 'inferno-component'\nimport h from 'inferno-hyperscript'\n\ninterface Props {\n title: string,\n completed: boolean,\n toggle(),\n remove()\n}\n\ninterface State {}\n\nexport default class Todo extends Componen... | typescript | edit | 0 | 1 | mit | 47c4e867f0f3c1a56a2e8ff92c77dd65c9f15609 | y0za/typescript-inferno-todo,y0za/typescript-inferno-todo,y0za/typescript-inferno-todo | src/components/todo.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from \"react\"\nimport { Responsive } from \"../Utils/Responsive\"\nimport { Box, BorderBox } from \"../Elements/Box\"\nimport { Flex } from \"../Elements/Flex\"\nimport { Sans } from \"@artsy/palette\"\n\nconst wrapper = x... | typescript | edit | null | null | mit | 108cdf149865d45656fed156cf3049b02b030341 | xtina-starr/reaction,xtina-starr/reaction,artsy/reaction,xtina-starr/reaction,artsy/reaction-force,artsy/reaction,artsy/reaction,xtina-starr/reaction,artsy/reaction-force | src/Styleguide/Components/MarketInsights.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport class HttpException extends Error {\n public readonly message: any;\n\n /**\n * Base Nest application exception, which is handled by the default Exceptions Handler.\n * If you throw an exception from your HTTP route handler... | typescript | edit | 0 | 2 | mit | 40cd722eaf97da5b8e45381269c7504ad9f37fe7 | kamilmysliwiec/nest,kamilmysliwiec/nest | packages/common/exceptions/http.exception.ts | rejected_duplicate | Near-duplicate of sample 112382 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as Axios from \"axios\";\nimport { Thunk } from \"../redux/interfaces\";\nimport { Point } from \"../farm_designer/interfaces\";\nimport { API } from \"../api\";\nimport { success } from \"../ui\";\n\n\nconst QUERY = { meta: { ... | typescript | edit | 0 | 3 | mit | 1ee647e63243ce4076ab43b5a42f1f2548e5d7db | RickCarlino/farmbot-web-frontend,FarmBot/farmbot-web-frontend,MrChristofferson/farmbot-web-frontend,FarmBot/farmbot-web-frontend,RickCarlino/farmbot-web-frontend,MrChristofferson/farmbot-web-frontend | src/images/actions.tsx | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n\nimport {StatusBarItem} from 'vscode';\n\n\nexport interface IView {\n \n /**\n * Refresh the view. \n */\n refresh(text: string): void;\n}\n\nexport class StatusBarView implements IView {\n \n private _statusBar... | typescript | edit | 0 | 1 | mit | a8c6fb992c909a634afb1dd688efcf1bd19b4acc | waderyan/vscode-gitblame | src/view.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, ViewContainerRef, OnInit, ViewEncapsulation, Injector } from '@angular/core';\nimport { LoginService } from './login/login.service';\nimport { AppComponentBase } from '@shared/app-component-base';\n\n@Component({\n ... | typescript | edit | 0 | 1 | mit | d186d8e843ef8c78129edce389e6b2fb8d6d9c80 | aspnetboilerplate/module-zero-core-template,aspnetboilerplate/module-zero-core-template,aspnetboilerplate/module-zero-core-template,aspnetboilerplate/module-zero-core-template,aspnetboilerplate/module-zero-core-template | angular/src/account/account.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path=\"./asana.d.ts\" />\nimport Asana = require(\"asana\");\n\nexport function getAsanaClient(): Asana.Client {\n return Asana.Client.create();\n}\n\n\n```\n\nApply this change: Add comment to test function"
},
{
... | typescript | edit | 0 | 1 | mit | a4bacb926537a8b9edc576eda9678122f9858d20 | Asana/api-explorer,Asana/api-explorer | src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport sade from 'sade';\nimport * as pkg from '../../package.json';\n\nconst prog = sade('svelte').version(pkg.version);\n\nprog\n\t.command('compile <input>')\n\n\t.option('-o, --output', 'Output (if absent, prints to stdout)')\n\t.op... | typescript | edit | 0 | 1 | mit | bf319915d4f78dc5a9f526bf37a0ee8875260bcb | sveltejs/svelte,sveltejs/svelte | src/cli/index.ts | accepted | null | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.