messages
listlengths
2
2
language
stringclasses
8 values
prompt_type
stringclasses
2 values
lint_errors
int64
0
129
⌀
cyclomatic_complexity
int64
0
32
⌀
license
stringclasses
7 values
commit
stringlengths
40
40
repos
stringlengths
5
116k
new_file
stringlengths
4
220
status
stringclasses
6 values
error
stringlengths
26
74
⌀
is_valid_syntax
bool
2 classes
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport Anchor from '../anchor';\n\nexport default ({options}: {options: Array<{ text: string, href: string }>}) => (\n <div style={styles}>\n {options.map(({text, href}) => <p><Anchor text={tex...
typescript
edit
null
null
mit
5099667cb12a4889ca391bc60f6a7e9b68ac90a8
paypac/node-concierge,paypac/node-concierge,the-concierge/concierge,the-concierge/concierge,paypac/node-concierge,the-concierge/concierge,paypac/node-concierge
front/components/sidebar/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport responseToDataUrl from 'response-to-data-url'\n\n/**\n * @param {Document} doc DOM to attempt to find favicon URL from.\n * @returns {string?} URL pointing to the document's favicon or null.\n */\nfunction getFavIconURLFromDOM(do...
typescript
edit
0
4
mit
d55ce9ec8fe3de264a60580c2bad42906e7fc43b
WorldBrain/WebMemex,WorldBrain/WebMemex
src/page-analysis/background/content-extraction/extract-fav-icon.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport debounce from 'lodash-es/debounce';\ninterface IDebouncedProps {\n [key: string]: any;\n}\nfunction deb(wait: number) {\n return (key: string) =>\n function debounced<P>(Comp: React.Compon...
typescript
edit
null
null
mit
ed6fa1b8dbd4e217d16f052fa4e343153849e49e
Heigvd/Wegas,Heigvd/Wegas,Heigvd/Wegas,Heigvd/Wegas,Heigvd/Wegas
wegas-app/src/main/webapp/wegas-react-form/src/HOC/callbackDebounce.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as assert from 'assert';\nimport * as fs from 'fs';\nimport * as path from 'path';\nimport * as vscode from 'vscode';\nimport * as myext from '../src/main';\n\nsuite(\"Complex Command Tests\", () => {\n const fileUnformatted...
typescript
edit
0
1
mit
f55d93436e06248fe66f3a3b1b07ee7579bce30f
DAXaholic/vscode-edifact
test/extension.test.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { expect } from 'chai'\nimport Up from '../../index'\nimport { insideDocumentAndParagraph } from './Helpers'\nimport { PlainTextNode } from '../../SyntaxNodes/PlainTextNode'\nimport { EmphasisNode } from '../../SyntaxNodes/Emphas...
typescript
edit
0
1
mit
65014a8eb4d49182e125896b1afbcef42223eb01
start/up,start/up
src/Test/Ast/RevisionDeletion.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {\n Component,\n ComponentElement,\n ComponentType,\n createElement as r,\n Fragment,\n ReactElement,\n ReactPortal,\n SFCElement,\n} from 'react'\nimport { FieldRenderProps } from 'react-final-form'\nimport SequentialId,...
typescript
edit
0
4
mit
d245b55646b799a712b010304ef88923a27a64d8
thirdhand/components,thirdhand/components
packages/react-input-feedback/src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { RootState } from './types';\r\n\r\nimport { combineReducers } from 'redux';\r\nimport { reducer as toastr } from 'react-redux-toastr';\r\nimport { default as tab } from './reducers/tab';\r\nimport { default as search } from './...
typescript
edit
0
0
mit
121ab3e24e47c464f50aa9995c57d5eabe846e70
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/reducers.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n///<reference path='references.ts' />\r\n\r\nmodule TypeScript {\r\n export class SyntaxNode implements ISyntaxNodeOrToken {\r\n public parent: ISyntaxElement;\r\n private __kind: SyntaxKind;\r\n\r\n constructor(...
typescript
edit
0
2
apache-2.0
0994b0211fb56ed0706b276fcf0327d13708e272
fdecampredon/jsx-typescript-old-version,fdecampredon/jsx-typescript-old-version,fdecampredon/jsx-typescript-old-version
src/compiler/syntax/syntaxNode.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\nimport * as LiveSplit from \"../livesplit\";\n\nexport interface Props { state: LiveSplit.BlankSpaceComponentStateJson }\n\nexport default class BlankSpace extends React.Component<Props> {\n public ...
typescript
edit
null
null
mit
69bfde26bd90c646a30a1d4faee80eab22924fc7
CryZe/LiveSplitOne,CryZe/LiveSplitOne,CryZe/LiveSplitOne,CryZe/LiveSplitOne
src/layout/BlankSpace.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\"use strict\";\n\nimport chai from \"chai\";\nimport {Config} from \"../src/app/config\";\nimport {RouterConfigurationStub} from \"./stubs\";\n\ndescribe(\"Config test suite\", () => {\n\n it(\"should initialize correctly\", () => {...
typescript
edit
0
1
mit
45ff3bd70994458132d1fc02013e5376bf75451b
jp7677/hellocoreclr,jp7677/hellocoreclr,jp7677/hellocoreclr,jp7677/hellocoreclr
ui/test/config.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Directive, Input, HostListener, Renderer, ElementRef, DoCheck } from '@angular/core';\nimport { TreeDraggedElement } from '../models/tree-dragged-element.model';\n\nconst DRAG_OVER_CLASS = 'is-dragging-over';\n\n@Directive({\n ...
typescript
edit
0
2
mit
44060903c1c2f36ce7ad98929310173e844c4ec2
Alexey3/angular-tree-component,sm-allen/angular-tree-component,Alexey3/angular-tree-component,500tech/angular2-tree-component,Alexey3/angular-tree-component,500tech/angular2-tree-component,sm-allen/angular-tree-component,sm-allen/angular-tree-component,500tech/angular2-tree-component
lib/directives/tree-drag.directive.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*\n MIT License\n\n Copyright (c) 2017 Temainfo Sistemas\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Softwa...
typescript
edit
0
2
mit
18aae5d407a8889313a41183253fefbc3f32b6a6
TemainfoSistemas/truly-ui,TemainfoSistemas/truly-ui,TemainfoSistemas/truly-ui
src/dialog/dialog-default-behavior.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport class RelativeConverter {\n convert(input: number[]): number[] {\n const copy: number[] = input.slice(0);\n\n let previousValue = copy.shift();\n\n return copy.map(function (value) {\n let result;\n\n if (prev...
typescript
edit
0
4
mit
8c3ccc0ecd5cf80950d4660ed8918c74af1d9068
lmeijvogel/meter-reader-react,lmeijvogel/meter-reader-react
src/helpers/RelativeConverter.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ViewModelBase } from '../services/viewmodelbase';\n\nexport class Gettingstarted extends ViewModelBase {\n architectureDiagram: string = '';\n downloadLink: string = '';\n isDownload: boolean = false;\n list1: strin...
typescript
edit
0
2
mit
4ce1d5ac4412525ac66e166087168a71e9be0e1e
MattFarm/BusinessPlatformApps,MattFarm/BusinessPlatformApps,MattFarm/BusinessPlatformApps,MattFarm/BusinessPlatformApps,MattFarm/BusinessPlatformApps
Source/SiteCommon/Web/pagesgallery/getting-started.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport styled from '../../styles/styled-components';\n\nimport ButtonList from './ButtonList';\nimport RecentFileList from './RecentFileList';\n\nconst Wrapper = styled.div`\n display: flex;\n flex: 1;\n`;\...
typescript
edit
null
null
mit
fb859ac18139a66b2ff220a9dff22f5102ec5519
drakang4/jamak,Heeryong-Kang/jamak,Heeryong-Kang/jamak,drakang4/jamak,drakang4/jamak
app/components/Welcome/Welcome.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport declare const Module: {\n register(moduleName: string, moduleProperties: object): void;\n};\n\nexport declare const Log: {\n info(message?: any, ...optionalParams: any[]): void,\n log(message?: any, ...optionalParams: any[]): ...
typescript
edit
0
0
mit
4c35fda0453877fcf6f9b05dddfef0d593da0d20
heyheyhexi/MagicMirror,berlincount/MagicMirror,heyheyhexi/MagicMirror,roramirez/MagicMirror,n8many/MagicMirror,MichMich/MagicMirror,MichMich/MagicMirror,roramirez/MagicMirror,Tyvonne/MagicMirror,heyheyhexi/MagicMirror,MichMich/MagicMirror,berlincount/MagicMirror,thobach/MagicMirror,n8many/MagicMirror,Tyvonne/MagicMirro...
types.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n'use strict';\n\nimport {arrayEquivalent, keysAndValues, isNot, undefinedOrEmpty} from 'tsfun';\nimport {pureName} from 'idai-components-2';\n\n\nconst fs = require('fs');\n\n\nconst projectName: string = 'WES';\n\nconst selection = JSO...
typescript
edit
0
1
apache-2.0
57f55f7381d7d900931927288885b6a78e5f69b7
codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client
config/Scripts/Selection-hidden.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { FunctionComponent, Fragment } from \"react\"\nimport { PossibleEntries } from \"../loaders/EntriesLoader\"\nimport AppPreview, { isAppPreview } from \"../models/AppPreview\"\nimport EntryPreview from \"./EntryPreview\"\n\ninter...
typescript
edit
null
null
mit
0e3e1b12511972cee484327be504ca9022dabed5
JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk
components/EntriesPreviewsGrid.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, Context } from 'react'\n\nimport { Channel } from '../use-subscription'\n\ninterface Subscriber<Props> {\n (props: Props): Channel[]\n}\n\ninterface Wrapper {\n (component: Component): Component\n}\n\ntype Subscrib...
typescript
edit
0
0
mit
3be93671f79ae923ab424ac15dfdafeae488ada5
logux/logux-redux
subscribe/index.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { createWrapper } from \"next-redux-wrapper\";\r\nimport App from \"next/app\";\r\nimport React from \"react\";\r\nimport { Provider } from \"react-redux\";\r\nimport { Store } from \"redux\";\r\nimport configureStore from \"../r...
typescript
edit
null
null
bsd-3-clause
051bf949c210014081994aa4bf5697fe3f2189dd
nteract/nteract,nteract/nteract,nteract/nteract,nteract/nteract,nteract/nteract
applications/web/pages/_app.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Request, Response } from 'express';\nimport type { IBoard } from '../types/trello';\nimport { TrelloService } from '../services/trelloService';\n\nexport function index(_: Request, res: Response): Response {\n return res.send(...
typescript
edit
0
2
bsd-3-clause
36c61d36a4c248165d76c01905ed90f585879245
mpirik/github-trello-card-events,mpirik/github-trello-card-events,mpirik/github-trello-card-events
src/controllers/homeController.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { baseUrl, callId, userId } from './window'\nimport { SocketEvent, TypedEmitter } from '../shared'\nimport { SocketClient } from './ws'\nexport type ClientSocket = TypedEmitter<SocketEvent>\n\nconst wsUrl = location.origin.replac...
typescript
edit
0
0
mit
ce684ec1d39144b5247a81ea3d74fd02f07061a8
jeremija/peer-calls,jeremija/peer-calls,jeremija/peer-calls
src/client/socket.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Dispatch from '../src/Dispatcher';\n\nimport * as chai from 'chai';\nconst expect = chai.expect;\n\nimport * as path from 'path';\n\ndescribe('Dispatch', function () {\n let dispatch: Dispatch;\n\n beforeEach(function () {\...
typescript
edit
0
2
mit
6498f921c31782a17d5df9596fffff10573ab10f
hershal/fp-cli-ts,hershal/fp-cli-ts
test/DispatchSpec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Binary sideways addition\n// See: http://jsperf.com/hamming-weight\nconst hammingWeight = (x: number): number => {\n x -= ((x >> 1) & 0x55555555)\n x = (x & 0x33333333) + ((x >> 2) & 0x33333333)\n x = (x + (x >> 4)) & 0x0f0f0f0f\n...
typescript
edit
0
1
cc0-1.0
93b316b3ca34dbd4145eb5d6bee26b027da8c9d0
philpl/hachiko,philpl/hachiko
src/util/hammingWeight.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport module ConsentRepository {\n\n let cookieConsentPromiseResolve: any;\n\n const cookieConsentPromise = new Promise<void>(((resolve, reject) => {\n\n cookieConsentPromiseResolve = resolve;\n }));\n\n export funct...
typescript
edit
0
1
mit
34a166426530275adb7f7c98a5e82404ce9f07b3
danij/Forum.WebClient,danij/Forum.WebClient,danij/Forum.WebClient,danij/Forum.WebClient
src/services/consentRepository.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport class Semaphore {\n private tasks: (() => void)[] = [];\n count: number;\n\n constructor(count: number) {\n this.count = count;\n }\n\n private sched() {\n if (this.count > 0 && this.tasks.length > 0)...
typescript
edit
0
3
mit
9058030303bf3a7c334c35348c8d057fde626449
notenoughneon/await-semaphore
index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {stringify, parse} from \"superjson\"\nimport type {GetStaticProps} from \"next\"\nimport {TRPCError} from \"@trpc/server\"\nimport {useRouter} from \"next/router\"\nimport type {FC} from \"react\"\n\nimport {router} from \"serve...
typescript
edit
null
null
mit
73b676ecdc358caa8e67d6e445a0b1aa1540c05e
octet-stream/eri,octet-stream/eri
src/pages/post/[date]/[name]/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport express from \"express\";\nimport cors from 'cors';\n\nconst load = async (origin: string) => {\n const app = express();\n app.disable('x-powered-by');\n //options for cors midddleware\n const options: cors.CorsOption...
typescript
edit
0
1
mit
586c463e40486d38dbfbb4618ba082faed94adcf
jasoncabot/gardenpath,jasoncabot/gardenpath,jasoncabot/gardenpath
backend/src/loaders/expressLoader.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React, { ReactElement } from 'react'\nimport { useMatchMedia, useI18n } from 'hooks'\nimport { Header, Title } from 'components/Layout'\nimport Menu, { Item } from 'components/Layout/Menu'\nimport AnimatedPatterns from 'component...
typescript
edit
null
null
mit
7dc98837ee64b89d68ed3987d9734f3e0c40bda7
daltonmenezes/daltonmenezes.github.io,daltonmenezes/daltonmenezes.github.io,daltonmenezes/daltonmenezes.github.io
src/screens/App/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport epcis = require('../lib/epcisevents');\nvar assert = require('assert');\nvar sleep = require('sleep');\n\ndescribe('Parse json string back to our EPCIS objects', function () {\n this.timeout(10000);\n\n it('basic parsing', ...
typescript
edit
0
1
mit
0fd5086618a2d30b661395e3b203e611d68a793b
matgnt/epcis-js,matgnt/epcis-js
tests/jsonparsing.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport { observer } from 'mobx-react'\n\nexport default function<M>(Wrapped: React.ComponentClass<M> | React.SFC<M>) {\n\n @observer\n class MobxWrapper extends React.Component<{ model: M }, void> {\n ...
typescript
edit
0
1
mit
e299605ff5bccca0f7b2b06d9b6cb27840fa7470
pelotom/mobx-component
index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/* eslint no-unused-vars: 0 */\n/* eslint no-undef: 0 */\n\nimport { Packet } from '../../packet'\n\nvar p = Packet()\np = Packet({\n cmd: 'publish',\n topic: 'hello',\n payload: Buffer.from('world'),\n qos: 0,\n dup: false,\n ret...
typescript
edit
0
0
mit
1158ff1705a671b697d9813030c3069b19bce34f
mcollina/aedes-packet
test/types/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, Input, ContentChild } from 'angular2/core';\n\nimport template from './card-list.html!text';\n\nimport { CardHeader } from './header/card-header';\nimport { CardBody } from './body/card-body';\nimport { Card } from '...
typescript
edit
0
1
mit
dbb3ce1449223112431cec200dbac2b2b046494a
SonofNun15/conf-template-components,SonofNun15/conf-template-components,SonofNun15/conf-template-components
components/card-list/card-list.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Size } from './Size.d';\nimport { Mat } from './Mat.d';\nimport { Rect } from './Rect.d';\n\nexport class CascadeClassifier {\n constructor(xmlFilePath: string);\n detectMultiScale(img: Mat, scaleFactor?: number, minNeighbors...
typescript
edit
0
1
mit
2e3a7134cbe7d7f654d8ecfa3a23f0d2be7a3970
justadudewhohacks/opencv4nodejs,justadudewhohacks/opencv4nodejs,justadudewhohacks/opencv4nodejs,justadudewhohacks/opencv4nodejs,justadudewhohacks/opencv4nodejs,justadudewhohacks/opencv4nodejs
lib/typings/CascadeClassifier.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * Returns the source file definition\n */\nimport { MarkdownEngine } from '../enums/markdown-engine.enum';\nimport { ThemeService } from '../theme.service';\n\nexport function getSourceFile(fileName: string, line: string, url: str...
typescript
edit
0
4
mit
f83d1ba672fbc5440e82b2839b0202c2eefc4fc4
tgreyuk/typedoc-plugin-markdown,tgreyuk/typedoc-plugin-markdown
src/theme/helpers/getSourceFile.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Router, Request, Response, NextFunction } from 'express';\n\nclass PingRouter {\n\n router: Router;\n\n /**\n * Initialize the PingRouter\n */\n constructor() {\n this.router = Router();\n this.init();\n }\n\n /*...
typescript
edit
0
1
mit
35ad311dd02680c1c9b2ee8702330d6346edd7f0
DavidLevayer/countable,DavidLevayer/countable,DavidLevayer/countable
server/routes/ping/ping.router.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport assert from \"assert\";\nimport tf, {\n findTestFiles,\n component,\n loadTests,\n runTests,\n printResultsToConsole,\n writeResultsToFile,\n writeResultsToJunitFile,\n failureExitCode\n} from \"./index\";\n\nconst run = ...
typescript
edit
0
0
mit
2231cdee2a335e7b67beba91d9138df2eceabab9
testingrequired/tf,testingrequired/tf
src/cli.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { OutlineSyntaxNode } from './OutlineSyntaxNode'\n\n\nexport class SpoilerBlockNode {\n OUTLINE_SYNTAX_NODE(): void { }\n\n constructor(public children: OutlineSyntaxNode[] = []) { }\n\n protected SPOILER_BLOCK_NODE(): void { ...
typescript
edit
0
1
mit
dd0cbbe6d485104416076e27f0fa170dfe6d2b32
start/up,start/up
src/SyntaxNodes/SpoilerBlockNode.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Component} from 'angular2/core';\nimport {RouteConfig, ROUTER_DIRECTIVES, ROUTER_PROVIDERS} from 'angular2/router';\nimport {HTTP_PROVIDERS} from 'angular2/http';\nimport {ScheduleComponent} from './schedule/schedule.componen...
typescript
edit
0
0
mit
5e6a410358785f008f708026d0964fe81b047892
bluebirrd/nau-timetable,bluebirrrrd/nau-timetable,bluebirrd/nau-timetable,bluebirrrrd/nau-timetable,bluebirrd/nau-timetable,bluebirrrrd/nau-timetable,bluebirrrrd/nau-timetable,bluebirrd/nau-timetable
ng2-timetable/app/app.component.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 React from 'reac...
typescript
edit
null
null
mit
ba74b074c28d6cab42c4b04b4c3c2a3c5f664e26
facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper
desktop/app/src/chrome/AppWrapper.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as path from 'path';\nimport xdgBasedir from 'xdg-basedir'\nimport Common from '../common';\n\nabstract class Shortcut\n{\n\tstatic create( program: string, icon: string, autostart?: boolean )\n\t{\n\t\tif ( process.platform ==...
typescript
edit
0
2
mit
abddf31fe03e1689de6a0c680cec63e073d06a72
gamejolt/client-voodoo,gamejolt/client-voodoo
src/shortcut/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { existsSync } from 'fs';\nimport { join, sep } from 'path';\nimport { AbstractRunner } from './abstract.runner';\n\nexport class SchematicRunner extends AbstractRunner {\n constructor() {\n super(`\"${SchematicRunner.findClo...
typescript
edit
0
3
mit
c18ce7415e681f5a2e74d2a7d8f54fc69aeb318c
ThomRick/nest-cli,ThomRick/nest-cli
lib/runners/schematic.runner.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Vue from 'vue';\nimport vueCustomElement from 'vue-custom-element';\n\nVue.use(vueCustomElement);\n\nexport const wrap = <T extends Vue>(tag: string, component: { new (): T }): void => {\n Vue.customElement(tag, new component()....
typescript
edit
0
2
apache-2.0
c3de5579581dd3835ce8545e98a6a35f17e6c036
kawamon/hue,cloudera/hue,kawamon/hue,kawamon/hue,cloudera/hue,kawamon/hue,kawamon/hue,cloudera/hue,kawamon/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,kawamon/hue,cloudera/hue,cloudera/hue,cloudera/hue,kawamon/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,kawamon/hue,cloudera/hue,cloudera/hue,kawa...
desktop/core/src/desktop/js/vue/webComponentWrapper.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport 'ext/ace/ace'\nimport 'ext/ace/ext-language_tools';\nimport 'ext/ace/ext-searchbox';\nimport 'ext/ace/ext-settings_menu';\nimport 'ext/ace/mode-bigquery';\nimport 'ext/ace/mode-druid';\nimport 'ext/ace/mode-elasticsearch';\nimpor...
typescript
edit
0
0
apache-2.0
2f90794978ad9cfc8c8cd61c3592aed6ff2d9ec7
cloudera/hue,cloudera/hue,cloudera/hue,kawamon/hue,kawamon/hue,kawamon/hue,kawamon/hue,kawamon/hue,cloudera/hue,cloudera/hue,cloudera/hue,kawamon/hue,cloudera/hue,kawamon/hue,kawamon/hue,kawamon/hue,cloudera/hue,kawamon/hue,kawamon/hue,cloudera/hue,cloudera/hue,kawamon/hue,kawamon/hue,cloudera/hue,cloudera/hue,cloudera...
desktop/core/src/desktop/js/ext/aceHelper.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\n\nimport { NavParams } from 'ionic-angular';\n\nimport { AboutPage } from '../about/about';\nimport { MapPage } from '../map/map';\nimport { SchedulePage } from '../schedule/schedule';\nimport...
typescript
edit
0
1
apache-2.0
81338404e92b2b9a8b4a70b08f5dc9192afb6f68
nReality/SUGSA-ScrumGathering-App2016,nReality/SUGSA-ScrumGathering-App2016,nReality/SUGSA-ScrumGathering-App2016,nReality/SUGSA-ScrumGathering-App2016,nReality/SUGSA-ScrumGathering-App2016,nReality/SUGSA-ScrumGathering-App2016,nReality/SUGSA-ScrumGathering-App2016
app/pages/tabs/tabs.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nclass Exporter\n{\n Export(elements: ISerializable[]): string\n {\n return JSON.parse(JSON.stringify(elements, this.escapeJSON));\n }\n\n private GetSerializedItems(elements: ISerializable[]): any {\n var resu...
typescript
edit
0
2
mit
6d9bc110db9585f33832e72fe7b901f6c87b7a4b
Soneritics/form-builder,Soneritics/form-builder
FormBuilder/src/Modules/Exporter.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n///<reference path=\"./IGitHubUser.ts\" />\n\ninterface IGitHubRepository\n{\n id: number;\n\n name: String;\n\n fullName: string;\n\n private: boolean;\n\n htmlUrl: string;\n\n owner: IGitHubUser;\n};\n```\n\nApply this change: F...
typescript
edit
0
0
mit
74ba383c9b980c20ca02b00a9ea1e82b9df8fd73
harksys/HawkEye,harksys/HawkEye,harksys/HawkEye
src/js/Interfaces/Models/IGitHubRepository.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core'\nimport * as jwt_decode from 'jwt-decode'\n\n@Component({\n selector: 'app-last-login-ip',\n templateUrl: './last-login-ip.component.html',\n styleUrls: ['./last-login-ip.component.scss']\n\n...
typescript
edit
0
3
mit
dac6901db3ddf69ba6047dc5c456336c46f3f8ee
bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop
frontend/src/app/last-login-ip/last-login-ip.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Link from \"next/link\"\nimport { Fragment } from \"react\"\nimport HorizontalRule from \"./HorizontalRule\"\n\nconst Header = () => (\n <Fragment>\n <header>\n <nav>\n <Link href=\"/\">\n <a>Home</a>\n ...
typescript
edit
null
null
mit
edc8c56c4752aa10473a88ee7d3950b1087b00b7
JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk
components/Header.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "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 className=\"alert alert-primary\">\n <span className=\"icon stop\" />\n <div className=...
typescript
edit
null
null
mit
a10bad0248e918c9badc42f5710b14a61cd667bf
nooproblem/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,influxdb/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,influxdata/influxdb,nooproblem/influxdb,li-ang/influxdb,influxdb/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,mark-rushakoff/inf...
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 * as URL from 'url'\n\nimport { GitHubRepository } from '../models/github-repository'\nimport { User } from '../models/user'\nimport { Owner } from '../models/owner'\nimport { getHTMLURL } from './api'\n\n/** Try to use the list ...
typescript
edit
0
5
mit
99185a897d89ad7787430754931a02fed52cf40c
hjobrien/desktop,gengjiawen/desktop,hjobrien/desktop,artivilla/desktop,j-f1/forked-desktop,gengjiawen/desktop,kactus-io/kactus,BugTesterTest/desktops,gengjiawen/desktop,hjobrien/desktop,kactus-io/kactus,desktop/desktop,artivilla/desktop,desktop/desktop,artivilla/desktop,BugTesterTest/desktops,j-f1/forked-desktop,shiftk...
app/src/lib/repository-matching.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path='../typings/tsd.d.ts' />\n\nimport Q = require(\"q\");\n\n// Register context menu action\nVSS.register(\"vsts-extension-ts-seed-simple-action\", {\n getMenuItems: (context) => {\n return [<IContributedMen...
typescript
edit
0
8
mit
24fccd4f60e8eff15a975afdc69241df1a7dbe81
ostreifel/vsts-contributions,ostreifel/vsts-contributions,ostreifel/vsts-contributions
scripts/app.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\nimport { Observable } from 'rxjs/Rx';\nimport { NavController } from 'ionic-angular';\n\nimport { TimeService } from '../../time/time.service';\n\n@Component({\n selector: 'page-playground',\...
typescript
edit
0
1
apache-2.0
6494a057b4159e44d2cfc94c25413aca857c6350
sth-larp/deus-mobile,sth-larp/deus-mobile,sth-larp/deus-mobile,sth-larp/deus-mobile,sth-larp/deus-mobile
src/pages/playground/playground.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport default {\n types: {\n application: { definitiveCollection: 'main' },\n component: { definitiveCollection: 'components' },\n renderer: { definitiveCollection: 'main' },\n template: { definitiveCollection: 'components...
typescript
edit
0
0
mit
71f697612426241601c3916e9b0c1983504bc9bc
glimmerjs/glimmer-application-pipeline,glimmerjs/glimmer-application-pipeline,glimmerjs/glimmer-application-pipeline
src/broccoli/default-module-configuration.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {WhereLiteralQueryPart} from \"../match/WhereLiteralQueryPart\";\n\nexport class WhereBuilder {\n literal(queryPart:string):WhereLiteralQueryPart {\n return new WhereLiteralQueryPart(queryPart)\n }\n}\n```\n\nApply t...
typescript
edit
0
1
mit
ec9a5a5ca8336c52be537ecc28e30acd838101b5
robak86/neography
lib/cypher/builders/WhereBuilder.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as request from 'superagent'\nimport { getLogger } from '../services/log'\nimport * as API from './types/api'\n\nconst debugPostPhotosetBulkReorder = getLogger('/api/post-photoset-bulk-reorder.ts').debug\n\nexport functio...
typescript
edit
0
1
apache-2.0
6414d8619e1f8889aea4c094717c3d3454a0ef4a
whitetrefoil/flickr-simple-reorder,whitetrefoil/flickr-simple-reorder,whitetrefoil/flickr-simple-reorder
src/api/post-photoset-bulk-reorder.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { IRocketletAuthorInfo } from './IRocketletAuthorInfo';\nimport { IRocketletInfo } from './IRocketletInfo';\n\nexport { IRocketletAuthorInfo, IRocketletInfo };\n\n```\n\nApply this change: Add the RocketChatAssociationModel back ...
typescript
edit
0
0
mit
a836fbc36f2af749bdbac2e3e7dc972d4bb0939c
graywolf336/temporary-rocketlets-ts-definition,graywolf336/temporary-rocketlets-ts-definition
src/metadata/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Directive, ElementRef, EventEmitter, HostListener, OnInit, Output, Renderer } from '@angular/core';\n\n@Directive({\n selector: '[appFilePicker]'\n})\nexport class FilePickerDirective implements OnInit {\n @Output()\n public...
typescript
edit
0
1
mit
ece020830dd1b409bd4737f5f0234bff29c3f471
fvilers/angular-file-picker,fvilers/angular-file-picker,fvilers/angular-file-picker
src/file-picker.directive.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * @license\n *\n * ModernPlaylist.ts: Data structure for modern SoundManager2 playlist\n * -----------------------------------------------\n * Copyright (c) 2016 - 2017, The Little Moe New LLC. All rights reserved.\n *\n * This fi...
typescript
edit
0
0
bsd-2-clause
6ca7f95af41cafb8124274d352704ddd018280e4
imbushuo/MediaWiki-Sm2Shim,imbushuo/MediaWiki-Sm2Shim,imbushuo/MediaWiki-Sm2Shim,imbushuo/MediaWiki-Sm2Shim,imbushuo/MediaWiki-Sm2Shim
Models/ModernPlaylist.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\nimport { shallow, mount, render } from \"enzyme\";\nimport { MgError } from \"../../src/api/error\";\nimport { Error } from \"../../src/components/error\";\n\nfunction throwme() {\n throw new MgErro...
typescript
edit
null
null
mit
770af7605b9489c4fe76a46d6dbc4a770a4b7cac
jumpinjackie/mapguide-react-layout,jumpinjackie/mapguide-react-layout,jumpinjackie/mapguide-react-layout,jumpinjackie/mapguide-react-layout,jumpinjackie/mapguide-react-layout
test/components/error.spec.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as mio from '../../default';\nimport {createSeriesAsync} from './series';\n\n/**\n * Represents the provider.\n */\nexport let mangafox: mio.IProvider = {isSupported: isSupported, name: 'mangafox', seriesAsync: seriesAsync};\n\...
typescript
edit
0
2
mit
ca4e68f0f7ccc9de0b1d76e92e808bcc0c3db864
Deathspike/mangarack.js,MangaRack/mangarack,MangaRack/mangarack,Deathspike/mangarack.js,MangaRack/mangarack,Deathspike/mangarack.js
mangarack-component-core/src/providers/mangafox/default.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { EventObject, OmniEventObject, ActionObject } from 'xstate';\nimport { produce, Draft } from 'immer';\nimport { actionTypes } from 'xstate/lib/actions';\n\nexport type ImmerAssigner<TContext, TEvent extends EventObject> = (\n c...
typescript
edit
0
1
mit
fec904d5b163c4ba7bc247d4fc7ee527b072b648
davidkpiano/xstate,davidkpiano/xstate,davidkpiano/xstate
packages/xstate-immer/src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * This class contains API definitions for companies database connections\n * Created by Davide Polonio on 03/05/16.\n */\n\nimport * as express from \"express\";\n\nclass DatabaseRouter {\n\n private expressRef : express.Expres...
typescript
edit
0
1
mit
4d15d13ea5693f84e72f6b530604e866716214a7
BugBusterSWE/MaaS,BugBusterSWE/MaaS,BugBusterSWE/MaaS,BugBusterSWE/MaaS
src/routes/databaseRouter.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\nimport { AuthService } from 'ng2-ui-auth';\nimport { Component, OnInit, OnChanges } from '@angular/core';\nimport { Router } from '@angular/router';\n\nimport { LogoutService } from './../shared/logout.service';\nimport { Logout } fro...
typescript
edit
0
1
apache-2.0
6390a987082ce50e9c4cdb742ab8a8fe4665b9fe
dockstore/dockstore-ui2,dockstore/dockstore-ui2,dockstore/dockstore-ui2,dockstore/dockstore-ui2
src/app/navbar/navbar.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { css, theme } from \"renderer/styles\";\nimport env from \"common/env\";\n\nconst testDisables = () => {\n if (!env.integrationTests) {\n return css``;\n }\n\n return css`\n * {\n transition-property: none !importa...
typescript
edit
0
2
mit
c15e4323a1eb1277cde39e6305d416ab06c18eb0
itchio/itch,itchio/itch,itchio/itchio-app,itchio/itch,itchio/itchio-app,itchio/itch,itchio/itchio-app,itchio/itch,itchio/itch,leafo/itchio-app,leafo/itchio-app,leafo/itchio-app
src/renderer/global-styles/base.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport fs from \"fs\";\nimport path from \"path\";\n\nimport { TruffleDB } from \"truffle-db\";\n\nconst fixturesDirectory = path.join(\n __dirname, // truffle-db/src/loaders/test\n \"..\", // truffle-db/src/loaders\n \"..\", // truf...
typescript
edit
0
1
mit
6841030aeb35df51d6279d5bd8ede7c7056a0c83
ConsenSys/truffle
packages/truffle-db/src/loaders/test/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { resolveRoot } from './resolveRoot'\nimport { join } from 'path'\n\nexport function resolveDatabases() {\n\tif (process.env.NODE_ENV === 'development') {\n\t\treturn join(resolveRoot(), 'databases')\n\t} else {\n\t\treturn join(...
typescript
edit
0
2
mit
9e7a63e1b2dbcc177f228d03a18ed3fa7962d40a
wasd171/chatinder,wasd171/chatinder,wasd171/chatinder
src/shared/utils/resolveDatabases.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport type {GetStaticProps} from \"next\"\nimport {TRPCError} from \"@trpc/server\"\nimport type {FC} from \"react\"\n\nimport {router} from \"server/trpc/route\"\nimport {Post} from \"server/db/entity/Post\"\n\nimport getEmptyPaths fr...
typescript
edit
null
null
mit
d9d29ab260de70e4b1466ca57d283c78f44be625
octet-stream/eri,octet-stream/eri
src/pages/post/[date]/[name]/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { navigate } from \"takeme\";\nimport { maybeStripLegacyUrl } from \"./link\";\n\nexport const push = (url: string) => navigate(maybeStripLegacyUrl(url));\n\nexport const getPathArray = () => location.pathname.split(\"/\");\n\n/*...
typescript
edit
0
1
mit
4de47b37a11ba28d60de8279bc25b82cb2104ec5
FarmBot/Farmbot-Web-API,FarmBot/farmbot-web-app,FarmBot/Farmbot-Web-API,RickCarlino/farmbot-web-app,gabrielburnworth/Farmbot-Web-App,gabrielburnworth/Farmbot-Web-App,RickCarlino/farmbot-web-app,gabrielburnworth/Farmbot-Web-App,FarmBot/farmbot-web-app,FarmBot/farmbot-web-app,gabrielburnworth/Farmbot-Web-App,RickCarlino/...
webpack/history.tsx
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {RouteProps} from \"react-router\";\n\ninterface Route extends RouteProps {\n name: string\n}\n\nconst routes: Route[] = [\n {\n path: '/',\n exact: true,\n component: require('./components/dashboard/Ge...
typescript
edit
0
0
mit
dc953b5b73964f08cbebc1709b017a881cf6024a
mrkirby153/KirBotPanel,mrkirby153/KirBotPanel,mrkirby153/KirBotPanel,mrkirby153/KirBotPanel
resources/assets/js/dash_routes.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\n\nimport { ListCell } from '@waldur/marketplace/common/ListCell';\nimport { Section, Offering } from '@waldur/marketplace/types';\n\ninterface FeatureSectionProps {\n section: Section;\n offering: Offe...
typescript
edit
null
null
mit
4caf290eddb00399ca35a659007d9c4ad17d0c20
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
app/scripts/components/marketplace/details/FeatureSection.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport class IsaacGenerator {\n private _count: number;\n\n constructor() {\n this._count = 0;\n }\n\n public getValue(): number {\n return 0;\n }\n\n private _randomise(): void {\n\n }\n}\n\n```\n\nApply this change: Call ...
typescript
edit
0
2
mit
edd63bf98d0fcaff5ff252b7156d6905fb97d69d
Jameskmonger/isaac-crypto
src/isaac-generator.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Hubspot, {\n ApiOptions,\n AccessTokenOptions,\n HubspotError,\n} from '../..';\nimport { RequestError } from 'request-promise/errors';\n\nconst apiKeyOptions: ApiOptions = { apiKey: 'apiKey' };\nconst tokenOptions: AccessToke...
typescript
edit
0
2
mit
e83c75c3add24f4121780f55c0a274a880ea24e9
brainflake/node-hubspot,brainflake/node-hubspot
test/typescript/hubspot.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\"use strict\";\n\n/* Import libraries **********************************************************/\n\nimport * as express from 'express';\nimport * as winston from 'winston';\n\nimport * as hello from './hello';\n\n/* Set up Winston for...
typescript
edit
0
2
unlicense
82422a6f99ce63b1b8228f77da44fd64965c4167
LionsPhil/typescript-service-container-template
server.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react'\n\nimport {Stream, Unsubscribe} from 'slope'\n\ninterface Props<T> {\n stream: Stream<T>\n}\n\ninterface State<T> {\n value: T\n}\n\nclass Observable<T> extends React.Component<Props<T>, State<T>>{\n pr...
typescript
edit
0
2
mit
e0a1e60159c1d14ef8ab5f8ed06d7d01f47eb54f
juhohei/slope-react
src/lift.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\nimport { NgRedux } from '@angular-redux/store';\nimport { isEnumControl, JsonFormsState, RankedTester, rankWith } from '@jsonforms/core';\nimport { JsonFormsControl } from '@jsonforms/angular'...
typescript
edit
0
1
mit
e69285191917bb034b56440c309607cacda31223
qb-project/jsonforms,qb-project/jsonforms,qb-project/jsonforms
packages/ionic/src/controls/enum/enum-control.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { call, select } from 'redux-saga/effects';\r\nimport { PlayAudio } from '../actions/audio';\r\nimport { RootState } from '../types';\r\n\r\nconst playAudioFile = async (file: HTMLAudioElement, volume: number) => {\r\n try {\r\n...
typescript
edit
0
3
mit
8bbd08db0536bd6359347a42ae48f0769c805878
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/sagas/playAudio.ts
rejected_duplicate
Near-duplicate of sample 113472
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {DocumentListBuilder, DocumentList} from './DocumentList'\nimport {EditorBuilder} from './Editor'\nimport {ListItemBuilder} from './ListItem'\nimport {ListBuilder, List} from './List'\nimport {MenuItemBuilder} from './MenuItem'\n...
typescript
edit
0
0
mit
c1c0c6149dc32754bd9962df2c434642b2a7deb2
sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity
packages/@sanity/structure/src/StructureNodes.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport IUndoableOperation = require(\"../Core/Operations/IUndoableOperation\");\nimport ICompoundOperation = require(\"../Core/Operations/ICompoundOperation\");\nimport CompoundOperation = require(\"../Core/Operations/CompoundOperation\...
typescript
edit
0
1
mit
c8690c242939fbb19d5302e0848c466db3e8d92e
BlokDust/BlokDust,BlokDust/BlokDust,BlokDust/BlokDust,BlokDust/BlokDust,BlokDust/BlokDust
app/Operations/MoveBlockOperation.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport {ConfigLoader} from './lib/app/object-edit/config-loader';\nexport {Entity} from './lib/app/core-services/entity';\nexport {PersistenceManager} from './lib/app/object-edit/persistence-manager';\nexport {Datastore} from './lib/app...
typescript
edit
0
0
apache-2.0
7e4aeb7dc81cc27719274514f19fd2be60393616
dainst/idai-components-2,dainst/idai-components-2,dainst/idai-components-2
idai-components-2.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nrequire(\"./bootstrap\");\nimport * as shelljs from \"shelljs\";\nshelljs.config.silent = true;\nimport { installUncaughtExceptionListener } from \"./common/errors\";\ninstallUncaughtExceptionListener(process.exit);\n\n(async () => {\n\...
typescript
edit
0
2
apache-2.0
ad6e109dec4d5813ca931a9978dee9dcda1b2eb8
Icenium/icenium-cli,Icenium/icenium-cli
lib/appbuilder-cli.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference types=\"angular\" />\n\nvar app = angular.module('app', ['highcharts-ng']);\n\nclass AppController {\n chartConfig: HighChartsNGConfig = {\n options: {\n chart: {\n type: 'bar'\n ...
typescript
edit
0
1
mit
d095c67aa93626f02bf72bd5b8a2886870496fdb
alexdresko/DefinitelyTyped,mcliment/DefinitelyTyped,johan-gorter/DefinitelyTyped,aciccarello/DefinitelyTyped,mcrawshaw/DefinitelyTyped,benliddicott/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,georgemarshall/DefinitelyTyped,GiedriusGrabauskas/DefinitelyTyped,ashwinr/DefinitelyTyped,AgentME/DefinitelyTyped,zuzusik/Defini...
highcharts-ng/highcharts-ng-tests.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Vue from 'vue';\nimport Vuex, { MutationTree, ActionTree, GetterTree, Dispatch, DispatchOptions } from 'vuex';\nimport { ModulState } from './modul-state';\nimport * as ModulActions from './actions';\nimport * as ModulGetters fro...
typescript
edit
0
1
apache-2.0
c3706116a862c7d729784cba70bb0ab58f2f83fc
ulaval/modul-website,ulaval/modul-website,ulaval/modul-website
src/app/store/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nconst path = require('path');\nconst readPkgUp = require('read-pkg-up');\n\ninterface Prettier {\n format: (string, PrettierConfig?) => string;\n readonly version: string;\n}\n/**\n * Recursively search for a package.json upwards ...
typescript
edit
0
5
mit
74debd310cb808bdba999332e05e89ac27853eff
esbenp/prettier-vscode,CiGit/prettier-vscode,CiGit/prettier-vscode
src/requirePrettier.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {expect} from 'chai';\nimport * as cspell from '../index';\nimport * as path from 'path';\nimport * as fsp from 'fs-extra';\nimport * as dutchDict from 'cspell-dict-nl-nl';\nimport * as util from '../util/util';\n\nconst sampleFi...
typescript
edit
0
1
mit
52b1d4afe955fcc057232d66b1a9b1f8aabbc42f
Jason3S/cspell,Jason3S/cspell,Jason3S/cspell,Jason3S/cspell,Jason3S/cspell
src/test/dutch.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Document} from \"../model/document\";\nimport {Query} from \"./query\";\n\n/**\n * The interface providing read access methods \n * for datastores supporting the idai-components document model.\n * For full access see <code>Data...
typescript
edit
0
0
apache-2.0
17883672e8c883eaada0cc93aebc0b4c6c1e2461
dainst/idai-components-2,dainst/idai-components-2,dainst/idai-components-2
src/app/datastore/read-datastore.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference types=\"react\" />\n\ndeclare namespace jest {\n interface Matchers {\n toBeChecked(): void;\n toBeDisabled(): void;\n toBeEmpty(): void;\n toBePresent(): void;\n toContainReact(compo...
typescript
edit
0
0
mit
5afdf86f90f0af08b0214424e791229e3721c3e0
blainekasten/enzyme-matchers
packages/jest-enzyme/src/index.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport { Components, registerComponent } from '../../lib/vulcan-lib';\nimport { commentBodyStyles } from '../../themes/stylePiping'\nimport { truncate } from '../../lib/editor/ellipsize';\n\nconst styles = (t...
typescript
edit
null
null
mit
77ebfa68f39305701c66c776277d5f6ec062c2e5
Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2
packages/lesswrong/components/tagging/TagPreviewDescription.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as FSE from 'fs-extra'\nimport * as path from 'path'\nimport { Repository } from '../../../src/models/repository'\nimport { setupEmptyRepository } from '../../helpers/repositories'\nimport { GitProcess } from 'dugite'\nimport {...
typescript
edit
0
1
mit
6c9e5ee64502a2ab9b1d2b1020c28a63bf358c44
j-f1/forked-desktop,artivilla/desktop,kactus-io/kactus,desktop/desktop,artivilla/desktop,artivilla/desktop,shiftkey/desktop,desktop/desktop,kactus-io/kactus,artivilla/desktop,say25/desktop,j-f1/forked-desktop,say25/desktop,say25/desktop,desktop/desktop,say25/desktop,shiftkey/desktop,shiftkey/desktop,j-f1/forked-desktop...
app/test/unit/git/stash-test.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/* eslint-disable jest/expect-expect */\nimport { visitWithStatusRetries } from \"../helpers/visitWithStatusRetries\"\n\ndescribe(\"Shows\", () => {\n it(\"/shows\", () => {\n visitWithStatusRetries(\"shows2\")\n cy.get(\"h1\").s...
typescript
edit
0
1
mit
6886dbcc9bd6c6ad776fe5bfccc329c5846a279e
artsy/force,artsy/force-public,artsy/force-public,artsy/force,artsy/force,artsy/force
cypress/integration/shows.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/** @prettier */\nimport { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { OperatorFunction, TeardownLogic } from '../types';\n\n/**\n * Used to determine if an object is an Observable with a li...
typescript
edit
0
2
apache-2.0
19c5fbbc3136740c82884b820015952fed4e4b7a
kwonoj/RxJS,ReactiveX/RxJS,benlesh/RxJS,benlesh/RxJS,martinsik/rxjs,martinsik/rxjs,kwonoj/RxJS,kwonoj/RxJS,ReactiveX/rxjs,ReactiveX/RxJS,martinsik/rxjs,ReactiveX/rxjs,ReactiveX/RxJS,ReactiveX/RxJS,ReactiveX/rxjs,martinsik/rxjs,benlesh/RxJS,kwonoj/RxJS,benlesh/RxJS,ReactiveX/rxjs
src/internal/util/lift.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 {Actions} from '...
typescript
edit
0
3
mit
22787692655fb32cfa5ed671a3a9b3546adaf12d
facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper
desktop/app/src/reducers/user.tsx
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {GenericType} from '../../elements/types/generic';\nimport {genericify} from '../genericify';\n\nit('should return empty string while generics is empty', () => {\n expect(genericify([], null)).toBe('');\n});\n\nit('should return...
typescript
edit
0
1
mit
68d9e4019d82cc6cf55d708a14f50249ed5974b9
ikatyang/dts-element,ikatyang/dts-element
src/helpers/__tests__/genericify.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the 'License');\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https...
typescript
edit
0
0
apache-2.0
a2b02d3c894110e1b6b7b003322f220b24ca90a5
google/ground-platform,google/ground-platform,google/ground-platform,google/ground-platform
web-ng/src/app/components/layer-dialog/layer-dialog.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport path from \"path\";\nimport { ContractObject } from \"@truffle/contract-schema/spec\";\nimport { generateSolidity } from \"abi-to-sol\";\n\nimport { FS } from \"./fs\";\n\nexport class ABI extends FS {\n // requiring artifacts i...
typescript
edit
0
4
mit
647c95842bdfadae4975d24f53e9d2f5cc40b747
ConsenSys/truffle
packages/resolver/lib/sources/abi.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Node from '../node';\n\n/**\n * Depth First Search algorithm\n */\nexport default class DepthFirstSearch<N, E> {\n\n private _root: Node<N, E>;\n\n constructor(root: Node<N, E>) {\n this._root = root;\n }\n\n [...
typescript
edit
0
3
mit
ac28ef0b9dcde816c6c58968856043e9deb8c729
jledentu/konigsberg,jledentu/konigsberg
src/algorithms/depth-first-search.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Command } from \"./command\";\n\nexport class CommandTable {\n private name: string;\n private inherit: CommandTable[] = [];\n private commands: Map<string, Command> = new Map();\n\n constructor (name: string, inherit: Comm...
typescript
edit
0
1
mit
9f6c3d29ee5ca1847fab7937399d68960f1d821e
debugworkbench/workbench-commands
src/command_table.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\"\n\ninterface Props {\n text: string\n userId: string\n}\n\ninterface Response {\n}\n\nexport default class AddTweetMutation extends Relay.Mutation<Props, Res...
typescript
edit
null
null
mit
215f8c99ace4a0415ec0397d662a911ece84bdf8
borisyankov/DefinitelyTyped,aciccarello/DefinitelyTyped,one-pieces/DefinitelyTyped,mcrawshaw/DefinitelyTyped,smrq/DefinitelyTyped,alexdresko/DefinitelyTyped,mcliment/DefinitelyTyped,QuatroCode/DefinitelyTyped,AgentME/DefinitelyTyped,AgentME/DefinitelyTyped,zuzusik/DefinitelyTyped,nycdotnet/DefinitelyTyped,QuatroCode/De...
react-relay/react-relay-tests.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/* tslint:disable no-console */\nimport React from 'react'\n\nexport function ErrorHandling<\n P,\n S,\n T extends {new (...args: any[]): React.Component<P, S>}\n>(constructor: T) {\n class Wrapped extends constructor {\n private...
typescript
edit
null
null
mit
2895bbb268c8d19596eee3ef777a35e700c3db4c
mark-rushakoff/influxdb,nooproblem/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,li-ang/influxdb,influxdb/influxdb,nooproblem/influxdb,influxdata/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,li-ang/influ...
ui/src/shared/decorators/errors.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { AppStoreProvider } from \"lib/store/AppStore\"\nimport { Theme } from \"palette\"\nimport React from \"react\"\nimport ReactTestRenderer from \"react-test-renderer\"\nimport { ReactElement } from \"simple-markdown\"\n\n/**\n * ...
typescript
edit
null
null
mit
022249de73519f4ae22b6918d62215a6ec784e02
artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen
src/lib/tests/renderWithWrappers.tsx
rejected_syntax
Syntax error detected by tree-sitter
false