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, { ButtonHTMLAttributes, ReactNode } from 'react';\nimport { classnames } from '../../helpers/component';\nimport Icon, { Props as IconProps } from '../icon/Icon';\nimport { noop } from 'proton-shared/lib/helpers/function';...
typescript
edit
null
null
mit
2432a135e948cb869aba5edb044f8f06745f2026
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
packages/components/components/toolbar/ToolbarButton.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for ...
typescript
edit
0
2
mit
6f5f7574798517cf61ea10f41d9a49fd10da74ad
rishii7/vscode,DustinCampbell/vscode,eamodio/vscode,microlv/vscode,landonepps/vscode,0xmohit/vscode,the-ress/vscode,cleidigh/vscode,mjbvz/vscode,microlv/vscode,eamodio/vscode,cleidigh/vscode,mjbvz/vscode,Microsoft/vscode,the-ress/vscode,hoovercj/vscode,joaomoreno/vscode,eamodio/vscode,cleidigh/vscode,Microsoft/vscode,m...
extensions/markdown/src/commands/revealLine.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Component, PropTypes, cloneElement} from 'react';\nimport * as classNames from 'classnames';\nimport UIRouterReact, { UISref } from '../index';\nimport {find} from '../utils';\n\nexport class UISrefActive extends Component<any,a...
typescript
edit
0
4
mit
3db0a1efbd280bf7bdc3f4600fdee87719708ed8
ui-router/react,ui-router/react
src/components/UISrefActive.tsx
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Field } from './field';\nimport { File } from './file';\n\nexport class Object{\n id: number;\n base_path: string;\n input_file: string;\n path: string;\n title: string;\n headers: string[];\n metadata: Field[];\n files...
typescript
edit
0
4
mit
5817d881e9d43855e7efe092ffa033d771a0c2b0
uhlibraries-digital/brays,uhlibraries-digital/brays,uhlibraries-digital/brays
app/shared/object.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nprocess.env.FRONTEND_URL = \"dummy\"\nprocess.env.SESSION_SECRET = \"dummy\"\nprocess.env.TWITTER_CONSUMER_KEY = \"dummy\"\nprocess.env.TWITTER_CONSUMER_SECRET = \"dummy\"\nprocess.env.TWITTER_CALLBACK_URL = \"dummy\"\n\nimport * as req...
typescript
edit
0
1
mit
ba54f7db4ec57d4b30cd8f3cfd9dea27dcaa74cb
sketchglass/respass,sketchglass/respass,sketchglass/respass,sketchglass/respass
test/test_index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as vsc from 'vscode'\r\nimport * as ts from 'typescript'\r\nimport { invertExpression } from './utils/invert-expression'\r\n\r\nexport const NOT_COMMAND = 'complete.notTemplate'\r\n\r\nexport function notCommand (editor: vsc.Te...
typescript
edit
0
2
mit
5f28d53065dcde600c5385297849ef4cfaaa8717
ipatalas/vscode-postfix-ts,ipatalas/vscode-postfix-ts
src/notCommand.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Formatter} from './formatter';\n\n/**\n * @hidden\n */\nexport class NumberFormatter implements Formatter<number> {\n\tprivate digits_: number;\n\n\tconstructor(digits: number) {\n\t\tthis.digits_ = digits;\n\t}\n\n\tget digits(...
typescript
edit
0
1
mit
537d48ef943bfb6dd0dd9996eee5a7c8c0ac3f79
cocopon/tweakpane,cocopon/tweakpane,cocopon/tweakpane
src/main/js/formatter/number.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Guid } from \"./guid\";\nimport { User } from \"./user\";\nimport { ChatParticipantStatus } from \"./chat-participant-status.enum\";\nimport { IChatParticipant } from \"./chat-participant\";\nimport { ChatParticipantType } from...
typescript
edit
0
2
mit
8ca694689acdfd5e0ca681c4e8975a89a535daef
rpaschoal/ng-chat,rpaschoal/ng-chat,rpaschoal/ng-chat
src/ng-chat/core/group.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { EnvConfig } from './env-config.interface';\n\nconst BaseConfig: EnvConfig = {\n // Sample API url\n API: 'https://demo.com',\n RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.15.0',\n RELEASEVERSION: '...
typescript
edit
0
0
mit
cce77e22eb4e32bfd19f593b6c4286e209988558
nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website
tools/env/base.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react'\n\ninterface IEmojiTextProps {\n readonly className?: string\n readonly emoji: Map<string, string>\n readonly children?: string\n}\n\n/**\n * A component which replaces any emoji shortcuts (e.g., :+1:) ...
typescript
edit
null
null
mit
3c1e561335c8b6f85cb202a9e80a948a0eb03cc6
kactus-io/kactus,j-f1/forked-desktop,j-f1/forked-desktop,artivilla/desktop,shiftkey/desktop,hjobrien/desktop,artivilla/desktop,j-f1/forked-desktop,gengjiawen/desktop,BugTesterTest/desktops,j-f1/forked-desktop,shiftkey/desktop,artivilla/desktop,BugTesterTest/desktops,desktop/desktop,desktop/desktop,gengjiawen/desktop,sa...
app/src/ui/lib/emoji-text.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { RouteConfig } from \"react-router-config\";\nimport Layout from \"./components/Layout\";\nimport GitHubSearchLayout from \"./example/components/GitHubSearchLayout\";\nimport Main from \"./example/components/Main\";\nimport Abou...
typescript
edit
0
0
mit
46df7c93a66b315fdd7807124b4fb64a1640188e
lith-light-g/universal-react-redux-typescript-starter-kit,lith-light-g/universal-react-redux-typescript-starter-kit
src/routes.tsx
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://ne8nefmm61.execute-api.us-east-1.amazonaws.com/v1',\n AWS_REGION: 'us-east-1',\n COGNITO_USERPOOL: 'us-east-1_0UqEwk...
typescript
edit
0
0
mit
f5d97f4fedc941255ab98da3a52411f6d6f70c5f
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\nexport default function getCity(address: any, name: string) {\n for (let prop of ['city', 'town', 'village', 'hamlet']) {\n if (address.hasOwnProperty(prop))\n return address[prop];\n }\n return name;\n};\n\n```\n\nApply this...
typescript
edit
0
3
mit
b1e11d8d6921ec937580eb0ccd2cee7fa8e3f534
chat-radar/chat-radar,chat-radar/chat-radar,chat-radar/chat-radar
utils/get-city.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Copyright 2020 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\nimport {ls} from '../common/common.js'; // eslint-disable-line ru...
typescript
edit
0
1
bsd-3-clause
a604ae51d4d3aeedcf8036971818146a5595642b
ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend
front_end/sdk/SharedArrayBufferTransferIssue.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport $ from \"jquery\";\n\ndocument.addEventListener('DOMContentLoaded', () => {console.log(\"This is running TypeScript!\")})\n\n$(function () {\n $('[data-toggle=\"tooltip\"]').tooltip()\n});\n\ninterface User {\n foo: string,...
typescript
edit
0
1
apache-2.0
9ce3f9fd2e35d33ed4900522a612a324480bfd3d
agdsn/pycroft,agdsn/pycroft,agdsn/pycroft,agdsn/pycroft,agdsn/pycroft
web/resources/js/hello.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport { screen } from '@testing-library/dom';\nimport userEvent from '@testing-library/user-event';\n\nconst Input = () => <input />;\n\nexport default {\n title: 'Other/Demo/Setup',\n component: Input,\n}...
typescript
edit
null
null
mit
76f42150cb0cb0b150756f4ed82b4fc4254178c0
storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook
examples/official-storybook/stories/demo/setup.stories.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { t } from 'app/i18next-t';\nimport { Observable } from 'app/utils/observable';\nimport { useSubscription } from 'use-subscription';\nimport Sheet from '../dim-ui/Sheet';\nimport { MaterialCounts } from './MaterialCounts';\nimpor...
typescript
edit
null
null
mit
44103c2efe5e024389c26ccff598b2103ad4df4d
DestinyItemManager/DIM,DestinyItemManager/DIM,DestinyItemManager/DIM,DestinyItemManager/DIM
src/app/material-counts/MaterialCountsWrappers.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 { SocialAuthService } from \"angularx-social-login\";\nimport { GoogleLoginProvider } from \"angularx-social-login\";\nimport { SocialUser } from \"angularx-social-login\";\n\n@...
typescript
edit
0
1
apache-2.0
5a63d21f0b8d226802ba9168c1a76b83f187d05f
googleinterns/step263-2020,googleinterns/step263-2020,googleinterns/step263-2020,googleinterns/step263-2020
capstone-project/src/main/angular-webapp/src/app/authentication/authentication.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/* tslint:disable:no-unused-variable */\n\n/*!\n * Leaflet Map Service\n *\n * Copyright(c) Exequiel Ceasar Navarrete <<EMAIL>>\n * Licensed under MIT\n */\n\nimport { TestBed, async, inject } from '@angular/core/testing';\nimport { Lea...
typescript
edit
0
1
mit
f3f9992aea6c7008a2cf8b675b501edf18bc03a7
ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-interactive-maps
src/app/leaflet-map.service.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as angular from \"angular\";\n<% if (!moduleOnly) { %>import { <%= pName %>Config } from \"./<%= hName %>.config\";\nimport { <%= pName %>Controller } from \"./<%= hName %>.controller\";\n\n<% } %>export const <%= name %> = ang...
typescript
edit
null
null
mit
1275a715434469aa871ed9e8e0830e95866db87f
Kurtz1993/ngts-cli,Kurtz1993/ngts-cli,Kurtz1993/ngts-cli
templates/module/_name.module.ts
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { expect } from \"chai\";\n\ndescribe(\"Debugger\", () => {\n describe(\"#constructor()\", () => {\n it(\"should create a new debugger panel\", () => {\n expect(true).to.be.true;\n });\n });\n});\n\n```\n\nApply this...
typescript
edit
0
1
bsd-3-clause
b2616d49ac7ff2f627190cc1a3f7f868e8705ae0
jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab
tests/src/debugger.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { observable, action } from 'mobx'\nimport { MenuItem } from '../lib/contextMenu/interfaces'\nimport {\n menuHeight,\n menuMargin,\n menuVerticalPadding\n} from '../lib/contextMenu/consts'\n\nexport default class ContextMenuSt...
typescript
edit
0
2
mit
74533a5fb25b8ffb98f49f00d6b8bf76e938b06d
Sarah-Seo/Inpad,Sarah-Seo/Inpad
src/main/stores/ContextMenuStore.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport interface PostData {\n postId: number;\n date: number;\n title: string;\n content: string;\n tags: string[];\n}\n\nexport interface PostDataWrapper {\n posts: PostData[];\n totalPages: number;\n}\n\n```\n\nApply this chang...
typescript
edit
0
0
apache-2.0
29383de7ca8693c91c7255fc98c38a7f9b008d4c
jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog
src/app/journal/post-data.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, OnInit } from '@angular/core';\nimport { LogService } from 'app/_services';\nimport { ILogView } from 'app/common/logs/models';\n\n@Component({\n selector: 'applicationNameSelector',\n templateUrl: 'application...
typescript
edit
0
1
mit
b293d9178971f0f72796e5ec4246033631ae98e6
ZooPin/CK-Glouton,ZooPin/CK-Glouton,ZooPin/CK-Glouton,ZooPin/CK-Glouton
src/CK.Glouton.Web/app/src/app/modules/lucene/components/applicationNameSelector.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Box } from \"@artsy/palette\"\nimport { findCurrentRoute } from \"Artsy/Router/Utils/findCurrentRoute\"\nimport { NavBar } from \"Components/NavBar\"\nimport { isFunction } from \"lodash\"\nimport React, { useEffect } from \"re...
typescript
edit
null
null
mit
6e0f166be7a90a74cead03310b24d502d3cef91c
artsy/reaction,artsy/reaction,artsy/reaction-force,artsy/reaction-force,artsy/reaction
src/Apps/Components/AppShell.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { IFeedbackCESForm } from 'component/feedback/FeedbackCES/FeedbackCESForm';\n\ninterface IFeedbackEndpointRequestBody {\n source: 'app' | 'app:segments';\n data: {\n score: number;\n comment?: string;\n ...
typescript
edit
0
2
apache-2.0
29e7fbbcaea54ebdd62691e71bcd262f079c8e96
Unleash/unleash-frontend,Unleash/unleash-frontend,Unleash/unleash-frontend,Unleash/unleash-frontend
src/component/feedback/FeedbackCES/sendFeedbackInput.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/* beautify ignore:start */\nimport {\n\tit,\n\t//inject,\n\tinjectAsync,\n\tbeforeEachProviders,\n\tTestComponentBuilder\n} from 'angular2/testing';\nimport {<%=componentnameClass%>Component} from './<%=componentnameFile%>.component.ts...
typescript
edit
null
null
mit
d6dcd62c58168b3a91c1fccdc4e33f1e26145ea4
mcfly-io/generator-mcfly-ng2,mcfly-io/generator-mcfly-ng2,mcfly-io/generator-mcfly-ng2
generators/component/templates/_component.spec.ts
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\n /*#######.\n ########\",#:\n #########',##\".\n ##'##'## .##',##.\n ## ## ## # ##\",#.\n ## ## ## ## ##'\n ## ## ## :##\n ## ## ##*/\n\nimport { workspace, ExtensionContext } from 'vscode'\nimport {\n Langu...
typescript
edit
0
1
mit
a7a59abf65d4baf62f316ad73af6be6c3e247f17
kube/vscode-clang-complete,kube/vscode-clang-complete
src/client/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Meteor } from 'meteor/meteor';\nimport { Counts } from 'meteor/tmeasday:publish-counts';\n\nimport { Stores } from '../../../both/collections/stores.collection';\n\n\ninterface Options {\n [key: string]: any;\n}\n \nMeteor.pub...
typescript
edit
0
3
mit
c26d22751e29b99dc308c4ce6870591153f5a5bc
DarkChopper/yssi,DarkChopper/yssi,DarkChopper/yssi
server/imports/publications/stores.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { useCurrentStateAndParams } from '@uirouter/react';\nimport * as React from 'react';\nimport useAsync from 'react-use/lib/useAsync';\n\nimport { LoadingSpinner } from '@waldur/core/LoadingSpinner';\nimport { translate } from '@w...
typescript
edit
null
null
mit
ee34aded73eb73728b7baa7f8eb9aee4995c5c88
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
src/marketplace/resources/list/ProjectResourcesContainer.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { StatusBar } from 'expo-status-bar';\nimport React from 'react';\nimport { SafeAreaProvider } from 'react-native-safe-area-context';\n\nimport useCachedResources from './hooks/useCachedResources';\nimport useColorScheme from './...
typescript
edit
null
null
bsd-3-clause
920f676d3b448a84953584a344a6eaba4b462ca9
exponentjs/exponent,exponentjs/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponent,exponentjs/exponent,exponentjs/exponent,exponentjs/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent,exponent/exponent,exponent/exponent,exponent/exponent,exponent/exponent,exponent/exponent,exponentjs/expon...
templates/expo-template-tabs/App.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 Card from 'material-ui/Card';\nimport { withStyles } from 'material-ui/styles';\n\n\ninterface Props {\n userName: string;\n text: string;\n channelName: string;\n}\n\nconst styles = theme => (...
typescript
edit
null
null
mit
2c00c079cf1a4f0d306393c07b4372ee050adae5
tanishi/Slackker,tanishi/Slackker,tanishi/Slackker
app/src/components/Post/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as crypto from 'crypto';\nimport * as core from './core';\n\nabstract class StringToMD5Transformer implements core.Transformer {\n\tprotected abstract get digestMethodDescription(): string\n\tprotected abstract get digestMethod...
typescript
edit
0
1
mit
752d8394993880d1e09ef0c3e379a1874ba6f588
mitchdenny/ecdc
src/lib/md5.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as contentful from 'contentful-management'\n\nif (!process.env.CONTENTFUL_CMA_TOKEN) {\n require('dotenv').config()\n}\n\nexport const client = contentful.createClient({\n accessToken: process.env.CONTENTFUL_CMA_TOKEN\n})\n\n...
typescript
edit
0
1
mit
f9b45b5c00cb39f567b42696c5f076eeb179afd9
contentful/widget-sdk
test/integration/contentful-client.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n'use strict';\n\nimport path = require('path');\nimport * as operatingSystem from '../../src/workspace/operatingSystem';\nimport * as jsonFile from '../../src/workspace/jsonFile';\n\nexport function getConfig(){\n let configFileDire...
typescript
edit
0
4
mit
6a410add9da01ba415751a0d4f11e10855b854c6
joeferraro/MavensMate-VisualStudioCode
src/mavensmate/mavensMateAppConfig.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {AfterContentInit, Directive, ElementRef, HostListener, Input, OnDestroy} from \"@angular/core\";\n\n@Directive({\n selector: \"[ngx-auto-scroll]\",\n})\nexport class NgxAutoScroll implements AfterContentInit, OnDestroy {\n ...
typescript
edit
0
2
mit
b26fad225ecd8e442f4476309f230d39891a8d97
NagRock/angular2-auto-scroll
src/ngx-auto-scroll.directive.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as redux from \"redux\";\n\nimport { AppState, AppWindow } from \"../app\";\nimport { reducer } from \"./module\";\n\nexport interface LocalWindow extends AppWindow {\n __REDUX_DEVTOOLS_EXTENSION_COMPOSE__: any;\n}\n\nexport...
typescript
edit
0
3
mit
d351a4f00a05b20e6e09a626a02ab33ccea8b5a9
shuntksh/binaryscanr,shuntksh/binaryscanr,shuntksh/binaryscanr
client/store/configureStore.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {ServerLoader} from \"@tsed/common\";\nimport * as awsServerlessExpress from \"aws-serverless-express\";\nimport {Server} from \"./Server\";\n\n// NOTE: If you get ERR_CONTENT_DECODING_FAILED in your browser, this is likely\n// d...
typescript
edit
0
1
mit
78f47b05b9de94d84c156d29e675419d4454267d
Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators
examples/aws/src/LambdaServer.ts
rejected_duplicate
Near-duplicate of sample 114697
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component } from \"./component\";\n\nexport class Startup {\n static launch<T extends Component>(component: new () => T, containerId: string = 'container'): void {\n \n let container = document.getElementById(c...
typescript
edit
0
1
mit
94755f3470c33aba7f2f88378d32c7cfcd340080
Vtek/frameworkless,Vtek/frameworkless,Vtek/frameworkless
src/app/infrastructure/startup.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport DatabaseService from '../services/database';\n\nexport default class Events {\n dbService: DatabaseService = null;\n\n constructor() {\n this.dbService = new DatabaseService();\n }\n\n getAll(): Promise<any> {\n return ...
typescript
edit
0
2
mit
db1bf6cbe5b4f1405abdaff1e424625e27648571
SBats/marvel-reading-stats-backend
src/models/events.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Settings} from \"./settings\"\nimport * as Cookie from \"js-cookie\";\n\nexport function loadSettings(): Settings {\n try {\n const options = Cookie.getJSON(\"options\") || {};\n return Settings.createFromObject(options);...
typescript
edit
0
3
mit
fb88741ca056176adc088220d0aeb3473bb0126d
blakevanlan/KingdomCreator,blakevanlan/KingdomCreator
src/settings/settings-manager.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport default function Placeholder({ onClick }: { onClick: () => void }) {\n return (\n <div className=\"container\">\n <style jsx={true}>{`\n .container {\n display: flex;\n flex-direction: column;\n ...
typescript
edit
null
null
apache-2.0
904df7ee400fb39e08e43eec692d842461a53653
thenickreynolds/popcorngif,thenickreynolds/popcorngif
app/components/placeholder.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Analytics} from './Analytics'\n\nexport function runNotFoundPage() {\n const query = window.location.pathname.split(\"/\")\n const searchInput = document.getElementById(\"search_q\") as HTMLInputElement\n if (searchInpu...
typescript
edit
0
3
mit
23a6dec42b63b87b0a39b21dd4e52c4084a55697
OurWorldInData/owid-grapher,OurWorldInData/owid-grapher,owid/owid-grapher,owid/owid-grapher,owid/owid-grapher,OurWorldInData/owid-grapher,owid/owid-grapher,owid/owid-grapher,OurWorldInData/owid-grapher,OurWorldInData/owid-grapher
site/client/NotFoundPageMain.tsx
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as log from 'loglevel';\n\nimport { inferIcon } from '../../infer/inferIcon';\n\ntype IconParams = {\n packager: {\n icon?: string;\n targetUrl: string;\n platform?: string;\n };\n};\n\nexport async function icon(opt...
typescript
edit
0
4
bsd-2-clause
35d926b9595513d889f025b187a7da8b444252ce
jiahaog/Nativefier,jiahaog/Nativefier,jiahaog/Nativefier
src/options/fields/icon.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as fs from 'fs';\nimport {ReadStream} from 'fs';\n\nexport default {\n\ttest: (uri: string): boolean => /^\\.|^\\//.test(uri) || /^[a-zA-Z]:\\\\[\\\\\\S|*\\S]?.*$/g.test(uri),\n\n\tread: (path: string): Promise<ReadStream> => {...
typescript
edit
0
3
mit
041e6bf2579b964e57f3b0a80dc56d2aa9fb8d80
kicumkicum/stupid-player,kicumkicum/stupid-player
src/routes/file.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport 'webrtc-adapter';\n\nimport { App as PeerData } from './app/App';\n\nimport { Room } from './app/Room';\nimport { Participant } from './app/Participant';\nimport { EventDispatcher } from './app/EventDispatcher';\n\nimport { Signa...
typescript
edit
0
0
mit
9b0b202e79c01231f16cb78a74e8e3272c7e1481
Vardius/peer-data,Vardius/peer-data
src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Runtype, Static, create } from '../runtype';\n\nexport declare const RuntypeName: unique symbol;\n\nexport interface RuntypeBrand<B extends string> {\n [RuntypeName]: B;\n}\n\nexport interface Brand<B extends string, A extends...
typescript
edit
0
0
mit
846d0182b86bccfb0d578a42dc4318f9cf6c7eab
pelotom/runtypes,pelotom/runtypes
src/types/brand.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Koa = require('koa');\nimport KoaCors = require('koa-cors');\n\nconst app = new Koa();\napp.use(KoaCors());\napp.use(KoaCors({}));\napp.use(KoaCors({ origin: '*' }));\n\n```\n\nApply this change: Fix code style -- Remove useless ...
typescript
edit
0
0
mit
92b23eb97a86811e45982d1232151e1e9f11d4c8
dsebastien/DefinitelyTyped,AgentME/DefinitelyTyped,AgentME/DefinitelyTyped,borisyankov/DefinitelyTyped,markogresak/DefinitelyTyped,georgemarshall/DefinitelyTyped,dsebastien/DefinitelyTyped,AgentME/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,borisyankov/DefinitelyTyped,AgentME/Definitel...
types/koa-cors/koa-cors-tests.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * Copyright 2018-present Facebook.\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 * @format\n */\nimport BaseDevice from './BaseDevice';\nimport {D...
typescript
edit
0
3
mit
e25c1e7aaf77dcea44a22fc82e06509422df15d9
facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper
src/devices/ArchivedDevice.tsx
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport _cloneDeep from 'lodash.clonedeep';\nimport _merge from 'lodash.merge';\nimport { App, AppConfig, AppInitConfig, AppMiddlewares } from './App';\nimport { Extensible } from './Extensible';\nimport { ComponentTree, ComponentTreeNod...
typescript
edit
0
2
apache-2.0
a2e1931723d3d0df97ce65d154e7be7ca5779779
jovotech/jovo-framework-nodejs,jovotech/jovo-framework-nodejs
framework/src/HandleRequest.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Flex } from \"@artsy/palette\"\nimport React, { SFC } from \"react\"\n\ninterface Props {\n children: JSX.Element[] | string[] | string\n}\n\nexport const SuggestionItemContainer: SFC<Props> = ({ children }) => (\n <Flex flex...
typescript
edit
null
null
mit
b1794b746c7a6f0d9dc15aebdc0abca030352c7a
artsy/reaction,xtina-starr/reaction,xtina-starr/reaction,xtina-starr/reaction,artsy/reaction-force,artsy/reaction-force,artsy/reaction,artsy/reaction,xtina-starr/reaction
src/Components/Search/Suggestions/SuggestionItemContainer.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Copyright 2020 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n// Ensure all image variables are defined in the component docs.\n...
typescript
edit
0
0
bsd-3-clause
6361458fde9bc640c6453667f8ca560e5198b4e9
ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend
front_end/ui/components/docs/component_docs.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Context } from 'react'\n\ntype SubscribingOptions = {\n /**\n * Context with the store.\n */\n context?: Context<object>\n}\n\nexport type Channel = string | {\n channel: string\n [extra: string]: any\n}\n\n/**\n * Hook...
typescript
edit
0
1
mit
6377c6294b469dd681e082d930696ceceb126379
logux/logux-redux
use-subscription/index.d.ts
accepted
null
true
[ { "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
8e7b26f32212461b96bbd7a29b4c113110c8baaa
jp7677/hellocoreclr,jp7677/hellocoreclr,jp7677/hellocoreclr,jp7677/hellocoreclr
ui/test/config.spec.ts
rejected_duplicate
Near-duplicate of sample 113815
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ActionCreator } from '../types';\n\nimport 'isomorphic-fetch';\n\nconst setFetching = new ActionCreator<'SetFetching', boolean>('SetFetching');\n\nconst fetchServerData = {\n create: () => {\n return (dispatch: (actio...
typescript
edit
0
2
mit
480d83fff544a147caee4222820755e11b3c4a36
markschabacker/todoMVC_react,markschabacker/todoMVC_react,markschabacker/todoMVC_react
src/actions/fetchingActions.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as localforage from 'localforage';\r\n\r\nexport const persistedStateToStringArray = async () => {\r\n try {\r\n const localForageKeys: string[] = await localforage.keys();\r\n return await Promise.all(\r\n localFor...
typescript
edit
0
2
mit
bc1714955f1d2021a19b6e15e6cf8a48726aacc4
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/utils/backup.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { TestBed, async } from '@angular/core/testing';\nimport { RouterTestingModule } from '@angular/router/testing';\nimport { AppComponent } from './app.component';\n\ndescribe('AppComponent', () => {\n beforeEach(async(() => {\n ...
typescript
edit
0
1
apache-2.0
ff30631929d2d8e6c64e04435af5c9198faf5fa6
google/mysteryofthreebots,google/mysteryofthreebots,google/mysteryofthreebots
src/app/app.component.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"../lib.core.d.ts\" />\n\n/**\n * TestClass comment short text.\n *\n * TestClass comment text.\n *\n * @see [[TestClass]] @ fixtures\n */\nexport class TestClass {\n\n /**\n * publicProperty short text.\n ...
typescript
edit
0
0
apache-2.0
3d5714b664b2daa8c97ba3f11f5808cfcf3570cb
aciccarello/typedoc,aciccarello/typedoc,sebilasse/typedoc,aciccarello/typedoc,TypeStrong/typedoc,adamhickey/typedoc,darkartur/typedoc,dominic31/typedoc,adamhickey/typedoc,sebilasse/typedoc,igor-bezkrovny/typedoc,sebastian-lenz/typedoc,SierraSoftworks/typedoc,dominic31/typedoc,sebastian-lenz/typedoc,TypeStrong/typedoc,s...
test/converter/class/class.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ApolloServerBase } from 'apollo-server-core';\nimport { print, DocumentNode } from 'graphql';\n\ntype StringOrAst = string | DocumentNode;\n\n// A query must not come with a mutation (and vice versa).\ntype Query = { query: Str...
typescript
edit
0
6
mit
904329ed5be8e36775a904112fd53ed41c6a4066
apollostack/apollo-server
packages/apollo-server-testing/src/createTestClient.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport anchorme from 'anchorme'\nimport { basename } from 'path'\nimport { loadFile } from '../../fs/load-file'\nimport * as storage from '../../fs/storage'\nimport { openLinksInExternalBrowser, setFileMenuItemsEnable } from '../../util...
typescript
edit
0
1
mit
cd51a94434bf698097fbab288057d2ec1cfd0964
nrlquaker/nfov,nrlquaker/nfov
src/ui/document/doc.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { BrowserModule } from '@angular/platform-browser';\nimport { NgModule } from '@angular/core';\n\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\n\nimport { routing, appRoutingProviders} from './app.routing'...
typescript
edit
0
0
mit
afef02d0070d5f6b78cbf584dd11d9aac055a715
maurobonfietti/webapp,maurobonfietti/webapp
frontend/src/app/app.module.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\r\n * Trims leading and trailing whitespace and line terminators and replaces all \r\n * characters after character 90 with an ellipsis.\r\n * @param str\r\n */\r\nexport const truncate = (str: string, max = 90): string => {\r\n co...
typescript
edit
0
2
mit
4562b21304042769d6e7f567cecfd62381a308d5
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/utils/formatting.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ConnectionType } from './connectionType'\n\ninterface TransportDefinition {\n info: {\n url: string\n protocols?: string[]\n type: ConnectionType\n }\n}\n\ndeclare module 'autobahn' {\n interface Connection {\n t...
typescript
edit
0
0
apache-2.0
7572f954e1ab6698530d12eca414e0425e1090b0
AdaptiveConsulting/ReactiveTraderCloud,AdaptiveConsulting/ReactiveTraderCloud,AdaptiveConsulting/ReactiveTraderCloud,AdaptiveConsulting/ReactiveTraderCloud
src/client/src/rt-system/AutoBahnTypeExtensions.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {\n\tComponent as _Component,\n\tuseState as _useState,\n\tDispatch,\n\tSetStateAction,\n} from 'react';\n\n// Globally available modules must be declared here\n// Copy type definitions from @types/react/index.d.ts, because names...
typescript
edit
0
0
mit
c5fa12d8cd7bf2266e21221d99a0d870e4edfd74
reactjs/React.NET,reactjs/React.NET,reactjs/React.NET,reactjs/React.NET,reactjs/React.NET,reactjs/React.NET
src/React.Sample.Mvc4/types/index.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { PermissionsDirective } from './permissions.directive';\n\ndescribe('PermissionsDirective', () => {\n it('should create an instance', () => {\n // const directive = new PermissionsDirective();\n expect(true).toB...
typescript
edit
0
1
mit
49f2aef8d806cb64e8f7967250217e544b93ac18
AlexKhymenko/ngx-permissions,AlexKhymenko/ngx-permissions,AlexKhymenko/ngx-permissions
src/permissions.directive.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {View, Component, OnInit, provide} from 'angular2/core';\nimport {ROUTER_DIRECTIVES} from 'angular2/router';\n\nimport {MATERIAL_DIRECTIVES} from 'ng2-material/all';\n\nimport {EventsService} from './events.service';\nimport {Eve...
typescript
edit
0
1
mit
aad51530abe79ea70ccc12b97de85bc197a98491
bluebirrrrd/nau-timetable,bluebirrrrd/nau-timetable,bluebirrd/nau-timetable,bluebirrd/nau-timetable,bluebirrrrd/nau-timetable,bluebirrrrd/nau-timetable,bluebirrd/nau-timetable,bluebirrd/nau-timetable
ng2-timetable/app/schedule/events-list.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\nimport { SharedBasic } from \"./utils\";\n\nexport interface CollapsibleItemProps extends SharedBasic {\n expanded?: boolean;\n node?: React.ReactNode;\n header: any;\n icon?: React.ReactNode;\n i...
typescript
edit
0
0
mit
7ad73e649d4bdfd92717cc139cf11ac678c3ff17
react-materialize/react-materialize,react-materialize/react-materialize,react-materialize/react-materialize
types/components/CollapsibleItem.d.ts
rejected_duplicate
Near-duplicate of sample 114373
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as esri from 'esri-leaflet';\n\nimport { ILayer } from '../../types';\nimport { ESRISource } from './source';\n\nexport class ESRITiledMapLayer implements ILayer {\n previewSet = 0;\n previewCol = 0;\n previewRow = 0;\...
typescript
edit
0
1
apache-2.0
834432d4361bde9ac7b1fee6f3e3e366209ddb56
geoloep/krite,geoloep/krite,geoloep/krite
src/sources/esri/tiledMapLayer.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {\n Component, OnDestroy\n} from '@angular/core';\nimport {Observable, Observer} from 'rxjs';\nimport {DialogWrapperComponent} from \"./dialog-wrapper.component\";\nimport {DialogService} from \"./dialog.service\";\n\n@Component...
typescript
edit
0
2
mit
88173702b109460959c708143bec0a3d5437fca8
ankosoftware/ng2-bootstrap-modal,ankosoftware/ng2-bootstrap-modal,ankosoftware/ng2-bootstrap-modal
src/dialog.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Component, OnInit, Inject, ViewChild, TemplateRef} from '@angular/core';\nimport {Router} from '@angular/router';\nimport {IdaiFieldDocument} from '../model/idai-field-document';\nimport {ObjectList} from \"./object-list\";\nimp...
typescript
edit
0
0
apache-2.0
bf9ce5a438d1cf4bb9a54f067dc3e9900cf9a532
codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client
app/overview/overview-home.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { expect } from 'chai';\n\nimport {\n CodeMirrorEditorFactory,\n CodeMirrorMimeTypeService\n} from '@jupyterlab/codemirror';\n\nimport { CommandRegistry } from '@phosphor/commands';\n\nimport { Debugger } from '../../lib/debugg...
typescript
edit
0
1
bsd-3-clause
4dd0feb99fef8672cb443a8a746b520ef9f74357
jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab
tests/src/debugger.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {ActionType} from '../actions/types';\n\nexport default function store(state: ApplicationState = { containers: [], hosts: [] }, action: ActionType): ApplicationState {\n switch (action.kind) {\n case 'ADD_CONTAINER':\n ...
typescript
edit
0
5
mit
bb128ddbd901b09aeaeaab840bae7ff596265680
paypac/node-concierge,the-concierge/concierge,the-concierge/concierge,paypac/node-concierge,paypac/node-concierge,paypac/node-concierge,the-concierge/concierge
front/components/reducers/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\r\nimport { Caption } from '@shopify/polaris';\r\nimport { displaySecondsAsHHMMSS } from '../../utils/dates';\r\n\r\ninterface Props {\r\n readonly initialTimeLeft: number;\r\n}\r\n\r\ninterface State {\...
typescript
edit
null
null
mit
2523989bbfcf92b4dd7514afa320d7469a1ecf3a
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/components/Queue/QueueTimer.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * Created by grischa on 12/8/16.\n *\n * Get a connection to the Backend to run GraphQL query\n *\n */\n/// <reference path=\"../types.d.ts\" />\nimport {createNetworkInterface, default as ApolloClient} from \"apollo-client\";\n\n...
typescript
edit
0
2
bsd-3-clause
e957e4b81e72268b2432e11cec3bf112d797b804
mytardis/edm-client
src/edmKit/connection.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Ng2CiAppPage } from './app.po';\n\ndescribe('ng2-ci-app App', function () {\n let page: Ng2CiAppPage;\n\n beforeEach(() => {\n page = new Ng2CiAppPage();\n });\n\n it('should display message saying app works'...
typescript
edit
0
1
mit
930e32c52c1c340136c0df137b659f01b065bfa8
Elecash/ng2-ci-app,Elecash/ng2-ci-app,Elecash/ng2-ci-app,Elecash/ng2-ci-app
e2e/app.e2e-spec.ts
rejected_duplicate
Near-duplicate of sample 113702
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Coords, DoneCallback, GridLayer as LeafletGridLayer} from 'leaflet'\nimport {GridLayer, GridLayerProps, withLeaflet} from 'react-leaflet'\n\ntype DrawTileFn = (\n canvas: HTMLCanvasElement,\n coords: Coords,\n z: number\n) =>...
typescript
edit
0
1
mit
724acad12c5593242dbb1d5d58b6c8c49ea4e62a
conveyal/analysis-ui,conveyal/analysis-ui,conveyal/analysis-ui
lib/components/map/gridualizer.tsx
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as browserSync from 'browser-sync';\nimport * as del from 'del';\nimport * as gulp from 'gulp';\nimport * as runSequence from 'run-sequence';\nimport {DIR_TMP, DIR_DST, DIR_SRC, typescriptTask} from './common.ts';\n\ngulp.task(...
typescript
edit
0
1
mit
0a24b4a5bd5d89bb61ba211c7709bd5b8f65abe7
Farata/polymer-typescript-starter,Farata/polymer-typescript-starter
tool/gulpfile-dev.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, AfterViewInit, ElementRef } from '@angular/core';\nimport { TabService } from '../services/index';\nimport * as CodeMirror from 'codemirror';\n\n@Component({\n selector: 'rm-editor',\n template: `\n<div class=\...
typescript
edit
0
2
mit
29de5b72b5f9ef16b8827baff9c5bd268f8743f8
stofte/linq-editor,stofte/ream-editor,stofte/ream-editor,stofte/ream-editor,stofte/ream-editor
app/components/editor.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// [VexFlow](http://vexflow.com) - Copyright (c) Mohit Muthanna 2010.\n// @author Balazs Forian-Szabo\n//\n// ## Description\n//\n// A basic implementation of grace notes\n// to be rendered on a tab stave.\n//\n// See `tests/gracetabnot...
typescript
edit
0
1
mit
d27b2f220f2ad538e28e2c45d9c4b549ba0f8869
Tails/vexflow,Tails/vexflow,Tails/vexflow
src/gracetabnote.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as joi from 'joi';\nimport CtrlError from '../util/CtrlError';\n\nexport interface ProviderValidationResult<T> extends joi.ValidationResult<T> {\n provider?: string;\n}\n\nexport default class ValidationResults extends Array {...
typescript
edit
0
1
mit
bd3b2e2d2c3f0287ac69927ccefe43942338d7b9
remolueoend/ctrl-connect
validation/ValidationResults.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport define, { getName } from '@skatejs/define';\nimport Element from '@skatejs/element';\nimport { createElement } from 'react';\nimport { render } from 'react-dom';\n\nexport default class extends Element {\n disconnectedCallback()...
typescript
edit
0
3
mit
badabe9a4e84805a2491073be2b66bd4cc76ff3f
skatejs/skatejs,skatejs/skatejs,skatejs/skatejs
packages/element-react/src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, OnInit } from '@angular/core';\r\nimport {\r\n\tRedirectService,\r\n\tRedirectEnvironment,\r\n\tRedirectStatus,\r\n} from './redirect.service';\r\n\r\n@Component({\r\n\tselector: 'demo-redirect',\r\n\ttemplateUrl: '....
typescript
edit
0
1
mit
e14987f154790054dca997ce443f95da3da12f92
LuccaSA/lucca-front,LuccaSA/lucca-front,LuccaSA/lucca-front,LuccaSA/lucca-front
packages/ng/demo/app/shared/redirect/redirect.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\n\nexport interface ButtonProps {\n text?: string;\n faClass?: string;\n tooltip?: string;\n additionalClassNames?: string;\n disabled?: boolean;\n onClick: React.MouseEventHandler<HTM...
typescript
edit
null
null
mit
c4d6ae05fb74bcc5ac97837949ff82660c11baca
cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative
client/Components/Button.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { MenuItemConstructorOptions } from 'electron'\nimport { openLauncherWindow } from '../launcher/window'\nimport { showLogs } from '../logging/window'\nimport { isMac } from './utils'\n\nexport const baseWindowSubMenu: MenuItemCon...
typescript
edit
0
1
apache-2.0
b467ca185ab0505098e80aa6a7657995a33ba2b6
stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila
desktop/src/main/menu/window.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { TlButton } from './button';\n\nexport * from './button';\n\n@NgModule({\n imports: [\n CommonModule,\n ],\n declarati...
typescript
edit
0
0
mit
8ffa707bd32f08f6e4b78535a3f98d81760b5796
TemainfoSistemas/truly-ui,TemainfoSistemas/truly-ui,TemainfoSistemas/truly-ui
src/button/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport { IGitHubUser } from '../../lib/dispatcher'\n\ninterface IAvatarProps {\n readonly gitHubUser: IGitHubUser | null\n readonly title: string | null\n}\n\nexport class Avatar extends React.Component...
typescript
edit
null
null
mit
77344c52bdf0e549ac0d11823ed4cf60e15f37ee
artivilla/desktop,j-f1/forked-desktop,hjobrien/desktop,gengjiawen/desktop,j-f1/forked-desktop,kactus-io/kactus,artivilla/desktop,shiftkey/desktop,gengjiawen/desktop,gengjiawen/desktop,BugTesterTest/desktops,gengjiawen/desktop,j-f1/forked-desktop,artivilla/desktop,hjobrien/desktop,artivilla/desktop,say25/desktop,shiftke...
app/src/ui/lib/avatar.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { useCallback } from 'react';\nimport {\n Animated,\n LayoutChangeEvent,\n NativeSyntheticEvent,\n NativeScrollEvent,\n} from 'react-native';\nimport { StretchyOnScroll } from '../types';\nimport { useImageWrapperLayout } fro...
typescript
edit
0
4
mit
8d381d1f680e76489f9e5385387d3f66075235d2
hamidhadi/react-native-stretchy,hamidhadi/react-native-stretchy,hamidhadi/react-native-stretchy,hamidhadi/react-native-stretchy
lib/src/hooks/useOnScrollHandle.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*!\n * Leaflet Zoom Component\n *\n * Copyright(c) Exequiel Ceasar Navarrete <<EMAIL>>\n * Licensed under MIT\n */\n\nimport { Component, OnInit, ViewChild, ElementRef, Renderer } from '@angular/core';\nimport { LeafletMapService } fro...
typescript
edit
0
1
mit
b546a1cbe2d4fb4b719daed038401e2252c5a040
ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-ng2
src/app/leaflet/leaflet-zoom/leaflet-zoom.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n'use strict';\nimport * as vscode from 'vscode';\nimport * as fs from 'fs-extra';\nimport * as path from 'path';\n\nimport { run as convertToTypeScript } from 'react-js-to-ts';\n\nexport function activate(context: vscode.ExtensionContex...
typescript
edit
0
3
apache-2.0
5590ea7ddb420e8d6946ded51b902bbdff587b4d
mohsen1/react-javascript-to-typescript-transform-vscode
src/extension.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { IRootState } from '../types';\n\nconst localStorageKey = 'todoState';\n\nexport class LocalStoragePersister {\n\n public loadPersistedState(): IRootState {\n return JSON.parse(localStorage.getItem(localStorageKey) || ...
typescript
edit
0
2
mit
f0297f075abf6753f0aebc22d698808aff78581d
markschabacker/todoMVC_react,markschabacker/todoMVC_react,markschabacker/todoMVC_react
src/store/localStoragePersister.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * The oldest officially supported version of GitHub Enterprise.\n * This information is used in user-facing text and shouldn't be\n * considered a hard limit, i.e. older versions of GitHub Enterprise\n * might (and probably do) wo...
typescript
edit
0
0
mit
42d6108e8d932c73b75866b936aca57245f69553
desktop/desktop,desktop/desktop,shiftkey/desktop,j-f1/forked-desktop,j-f1/forked-desktop,j-f1/forked-desktop,shiftkey/desktop,shiftkey/desktop,j-f1/forked-desktop,desktop/desktop,shiftkey/desktop,desktop/desktop
app/src/lib/enterprise.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as fs from 'fs';\nimport * as vscode from 'vscode';\nimport * as tmp from 'tmp';\nimport * as util from './util';\n\nconst extension = vscode.extensions.getExtension('dlang-vscode.dlang');\n\nbefore(function (done) {\n this....
typescript
edit
0
1
mit
98380ef6712d5708916d5b7db502f8dda7d11c9e
dlang-vscode/dlang-vscode,mattiascibien/dlang-vscode
test/extension.test.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport * from './make-decorator';\nexport * from '.';\nexport * from './storybook-channel-mock';\n\n// There can only be 1 default export per entry point and it has to be directly from public_api\n// Exporting this twice in order to to ...
typescript
edit
0
0
mit
0144d7f42c9ba892d76f559a06e724fbc6473577
storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,kadirahq/react-storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook
lib/addons/src/public_api.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, OnInit } from '@angular/core';\nimport { Task, TaskService } from './../../core/core.module';\n\n@Component({\n selector: 'app-task-dashboard',\n templateUrl: './task-dashboard.component.html',\n styleUrls: ['./ta...
typescript
edit
0
2
mit
fbddf94debbb15053880a83f14449c581b5c69cc
s-soltys/RewardYourselfApp,s-soltys/RewardYourselfApp,s-soltys/RewardYourselfApp
src/app/task/task-dashboard/task-dashboard.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport mongoose from 'mongoose';\nimport Message from '@/interfaces/Message';\n\nexport interface IUserRessourceModel extends mongoose.Types.Subdocument {\n name: string;\n mail: string;\n language: string;\n payload: any;\n};\n\nex...
typescript
edit
0
0
mit
2fd95b81720b8a46d0997d857dcf198d5dcfb14d
schulcloud/node-notification-service,schulcloud/node-notification-service,schulcloud/node-notification-service
src/models/message.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React, { ChangeEvent, ReactNode } from 'react';\nimport { classnames } from '../../helpers';\nimport Icon from '../icon/Icon';\n\nimport './FileButton.scss';\n\ninterface Props {\n className?: string;\n icon?: string;\n ...
typescript
edit
null
null
mit
72cc0caca751097e8a975f5249d3d3b012e4f3f1
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
packages/components/components/button/FileButton.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\ndeclare module externalLib {\n export function doSomething2(arg: any): void;\n}\n\ndeclare module 'externalLib' {\n export = externalLib\n}\n```\n\nApply this change: Fix typo in basic test" }, { "role": "assistant", "co...
typescript
edit
0
1
mit
eeef76eac5e60050c4086212a302b3fb26075a52
basarat/ts-loader,MortenHoustonLudvigsen/ts-loader,use-strict/ts-loader,bjfletcher/ts-loader,gsteacy/ts-loader,TypeStrong/ts-loader,thomasguillory/ts-loader,gsteacy/ts-loader,jbrantly/ts-loader,jbrantly/ts-loader,use-strict/ts-loader,jbrantly/ts-loader,TypeStrong/ts-loader,gsteacy/ts-loader,thomasguillory/ts-loader,Mor...
test/basic/lib/externalLib.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport { storiesOf } from '@storybook/react';\n\nimport { Card } from '../../components/card';\n\nstoriesOf('Card', module).add('default', () => <Card>Hello world</Card>);\n\n```\n\nApply this change: Add som...
typescript
edit
null
null
mit
7cc1b132f4ea20792edda965bbf00ca33bb88901
patrick91/pycon,patrick91/pycon
frontend/src/stories/card/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as fs from 'fs';\nimport * as gzipSize from 'gzip-size';\n\nconst string = 'Lorem ipsum dolor sit amet.';\n\nconsole.log(string.length);\n\ngzipSize(string).then(size => console.log(size));\n\nconsole.log(gzipSize.sync(string))...
typescript
edit
0
1
mit
3602601174fe34a3af6c0b6403afd4ac96be5129
chrootsu/DefinitelyTyped,aciccarello/DefinitelyTyped,borisyankov/DefinitelyTyped,arusakov/DefinitelyTyped,aciccarello/DefinitelyTyped,AgentME/DefinitelyTyped,chrootsu/DefinitelyTyped,alexdresko/DefinitelyTyped,georgemarshall/DefinitelyTyped,zuzusik/DefinitelyTyped,rolandzwaga/DefinitelyTyped,zuzusik/DefinitelyTyped,Age...
types/gzip-size/gzip-size-tests.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\nconst group = (pattern: string) => `(?:${pattern})`\n\nconst optional = (pattern: string) => pattern + '?'\n\nconst all = (pattern: string) => pattern + '*'\n\nconst atLeast = (count: number, pattern: string) => pattern + `{${count},}...
typescript
edit
0
1
mit
14390dfcaef558974cfd1b2fe717a9fd236db567
start/up,start/up
src/Parsing/Outline/Patterns.ts
accepted
null
true