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 { SchemaFactoryError, SchemaFactoryErrorType } from '../type-factory';\n\nimport { FieldOption } from '../metadata';\nimport { PaginationMiddleware } from '../middleware';\nimport { getMetadataArgsStorage } from '../metadata-buil... | typescript | edit | 0 | 12 | mit | fc1bb07c1e403d52b68170dff314526ed1c55862 | indigotech/graphql-schema-decorator,indigotech/graphql-schema-decorator | src/decorator/field.decorator.ts | rejected_complexity | Cyclomatic complexity too high: 12 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport moment from 'moment'\n\nimport type { RootState } from './types'\n\nexport const deriveStatusIconColor = ({\n syncState,\n backupState,\n lastSuccessfulSyncDate,\n}: RootState): 'green' | 'red' | 'yellow' => {\n const... | typescript | edit | 0 | 9 | mit | 3b482424e3d2de58ac2dd266e9dc182be4cdedab | WorldBrain/WebMemex,WorldBrain/WebMemex | src/dashboard-refactor/header/sync-status-menu/util.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { FileDb } from 'jovo-db-filedb';\nimport { App } from 'jovo-framework';\nimport { CorePlatform } from 'jovo-platform-core';\n\nimport { JovoDebugger } from 'jovo-plugin-debugger';\nimport { AmazonCredentials, LexSlu } from 'jovo... | typescript | edit | 0 | 2 | apache-2.0 | 814340df89bf38a43d2cdf131f1e2fd33a96fa26 | jovotech/jovo-framework-nodejs,jovotech/jovo-framework-nodejs | examples/typescript/06_core/hello-world/src/app.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { env } from \"./Environment\";\nimport { Metrics } from \"./Utility/Metrics\";\n\nexport class LauncherViewModel {\n constructor() {\n Metrics.TrackEvent('LandingPage');\n }\n\n GeneratedEncounterId = env.Encount... | typescript | edit | 0 | 2 | mit | 29ae6523e8dec1d181c0f7667ff7ea37bc1aeb89 | cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative | client/LauncherViewModel.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, OnInit } from '@angular/core';\n\n@Component({\n selector: 'app-modal',\n templateUrl: './modal.component.html',\n styleUrls: ['./modal.component.css']\n})\nexport class ModalComponent implements OnInit {\n\n con... | typescript | edit | 0 | 1 | mit | 755f12312bc87bcc11d46842e953da2347cc0b27 | filoxo/an-angular-modal,filoxo/an-angular-modal,filoxo/an-angular-modal | src/app/modal/modal.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path='fourslash.ts' />\r\n\r\n////var x = \"/*1*/string\";\r\n////function f(a = \"/*2*/initial value\") { }\r\n\r\n\r\ngoTo.marker(\"1\");\r\nverify.renameInfoFailed();\r\n\r\ngoTo.marker(\"2\");\r\nverify.renameInfoFail... | typescript | edit | 0 | 0 | apache-2.0 | 0c507747c89bd01d183b8d82c55fefa1fcbda104 | mihailik/TypeScript,RyanCavanaugh/TypeScript,thr0w/Thr0wScript,erikmcc/TypeScript,kitsonk/TypeScript,DLehenbauer/TypeScript,erikmcc/TypeScript,donaldpipowitch/TypeScript,jwbay/TypeScript,nojvek/TypeScript,SaschaNaz/TypeScript,Microsoft/TypeScript,thr0w/Thr0wScript,Eyas/TypeScript,ziacik/TypeScript,chuckjaz/TypeScript,w... | tests/cases/fourslash/renameStingLiterals.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport interface QrCodeCapabilities {\n useSizeInPath: boolean;\n svgIsSupported: boolean;\n}\n\nexport type QrCodeFormat = 'svg' | 'png';\n\nexport const buildQrCodeUrl = (\n shortUrl: string,\n size: number,\n format: QrCodeForma... | typescript | edit | 0 | 5 | mit | ecefa222047f47a35beff5189c775f9fa567ee3c | shlinkio/shlink-web-client,shlinkio/shlink-web-client,shlinkio/shlink-web-client,shlinkio/shlink-web-client | src/utils/helpers/qrCodes.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport { c } from 'ttag';\nimport { getStaticURL } from '@proton/shared/lib/helpers/url';\n\nimport TopBanner from './TopBanner';\nimport { Href } from '../../components';\n\nconst WelcomeV5TopBanner = () => ... | typescript | edit | null | null | mit | a148b17bfdc2a226dd2393d0abb8befb3307b941 | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | packages/components/containers/topBanners/WelcomeV5TopBanner.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * Copyright (c) 2020 mol* contributors, licensed under MIT, See LICENSE file for more info.\n *\n * @author Alexander Rose <<EMAIL>>\n */\n\nimport { DrawPass } from './draw';\nimport { PickPass } from './pick';\nimport { MultiSam... | typescript | edit | 0 | 4 | mit | ba8d6dc3fa19fa3a8733caf1c5a84d7c280fe251 | molstar/molstar,molstar/molstar,molstar/molstar | src/mol-canvas3d/passes/passes.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Type definitions for shell-quote 1.6\n// Project: https://github.com/substack/node-shell-quote\n// Definitions by: Jason Cheatham <https://github.com/jason0x43>\n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// ... | typescript | edit | 0 | 1 | mit | 99df7eac6b8254d30af2b2b5cf63b6c057e5d0d9 | georgemarshall/DefinitelyTyped,dsebastien/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/DefinitelyTyped,dsebastien/DefinitelyTyped,mcliment/DefinitelyTyped,georgemarshall/DefinitelyTyped,markogresak/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/DefinitelyTyped | types/shell-quote/index.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {createAction} from \"reducers/createAction\";\nimport ActionTypes from \"actions/actionTypes\";\nimport assign from \"utils/assign\";\n\nexport class ListFeatureFactory {\n private id: string;\n private initialState: any;\n\n ... | typescript | edit | 0 | 3 | mit | 7d05b15e33f7075740819c1e7d0305e635acf465 | szabototo89/kitchen-timer,szabototo89/kitchen-timer,szabototo89/kitchen-timer | src/reducers/listFeatureFactory.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { runBenchmarks } from './support/runner';\nimport { BenchmarkConfig, BenchmarkFactories } from './support/async-bench';\nimport { QUERY_BENCHMARKS } from './profiling/query-pipeline.perf';\nimport { COMPARISON } from './comparis... | typescript | edit | 0 | 2 | mit | 0e60272c02155cd8fb7e243fe5479caa5772d52e | AEB-labs/graphql-weaver,AEB-labs/graphql-weaver | spec/performance/performance-suite.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { NgModule } from '@angular/core';\nimport { RouterModule, Routes } from '@angular/router';\n\nimport { AuthGuard } from './auth/guards/auth.guard';\nimport { UnauthGuard } from './auth/guards/unauth.guard';\n\nimport { HomePage,... | typescript | edit | 0 | 0 | mit | b6a93b57c5cf9661fc5d32f6505d471a2b6b843e | anthonynsimon/parrot,todes1/parrot,anthonynsimon/parrot,todes1/parrot,todes1/parrot,todes1/parrot,todes1/parrot,anthonynsimon/parrot,anthonynsimon/parrot,anthonynsimon/parrot,todes1/parrot,anthonynsimon/parrot | app/src/app/app-routing.module.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as ReactDOM from \"react-dom\";\nimport * as React from \"react\";\n\nimport { CustomComponent } from \"./../custom-component\";\nimport { ComponentsRefs } from \"./../components-refs\";\nimport { Feed, FeedProp } from \"./../c... | typescript | edit | null | null | mit | 0433e484d0c022b3cd6f6993dbd0570ab3f676f4 | Xstoudi/alduin,Xstoudi/alduin,Xstoudi/alduin | src/app/js/component/feed-list.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport runJest from '../__helpers__/runJest';\n\ndescribe('TSX Compilation', () => {\n it('Should compile a button succesfully', () => {\n const result = runJest('../button', ['--no-cache', '-u']);\n\n const stderr = result.stder... | typescript | edit | 0 | 1 | mit | 305a75963e7343b9b66636ff3a748823787348fb | kulshekhar/ts-jest,kulshekhar/ts-jest | tests/__tests__/tsx-compilation.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\nimport { IonicModule } from '@ionic/angular';\nimport { MeasureReportPageModule } from './measu... | typescript | edit | 0 | 0 | apache-2.0 | 56bdfc3b8aafca86016fde54f280faf1da86134f | openradiation/openradiation-mobile,openradiation/openradiation-mobile,openradiation/openradiation-mobile,openradiation/openradiation-mobile | src/app/pages/measure/measure.module.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Update, View, defineComponent } from 'myra/core'\nimport { div } from 'myra/html/elements'\n\n\n/**\n * Model\n */\ntype Model = string | undefined\nconst model: Model = undefined\n\n\n/**\n * Update \n */\nconst mount: Update<... | typescript | edit | 0 | 1 | mit | fb1dc9eee1c3d300dd7ddbe2f5dd5c2892547d7d | jhdrn/myra,jhdrn/myra | examples/hello-world/src/app.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react'\n\nimport { Commit } from '../../models/commit'\nimport { RichText } from '../lib/rich-text'\nimport { RelativeTime } from '../relative-time'\nimport { Button } from '../lib/button'\n\ninterface IUndoCommi... | typescript | edit | null | null | mit | e141201412fe441cc16b019530100678c6877733 | say25/desktop,kactus-io/kactus,BugTesterTest/desktops,artivilla/desktop,hjobrien/desktop,shiftkey/desktop,hjobrien/desktop,BugTesterTest/desktops,desktop/desktop,j-f1/forked-desktop,artivilla/desktop,j-f1/forked-desktop,kactus-io/kactus,BugTesterTest/desktops,artivilla/desktop,j-f1/forked-desktop,hjobrien/desktop,gengj... | app/src/ui/changes/undo-commit.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 { Github } from \"react-feather\";\nimport { connect } from \"react-redux\";\nimport { Redirect } from \"react-router-dom\";\n\nimport actionCreators from \"../redux/sign-in\";\nimport \"./style... | typescript | edit | null | null | mit | 3d7f2231f16f3dea6315f74b25a401d1e05fba81 | raviqqe/code2d,raviqqe/code2d,raviqqe/code2d,raviqqe/code2d | app/src/container/SignIn.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nimport {css} from 'lit';\n\nexport const modalStyles = css`\n dialog {\n padding: 0;\n border: 1px solid var(--border-color);\n borde... | typescript | edit | 0 | 0 | apache-2.0 | 17ec07595a8592f099c9aa6479d52506b2f40973 | GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit | polygerrit-ui/app/styles/gr-modal-styles.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { getNamedType, GraphQLInputType, GraphQLOutputType, GraphQLType } from 'graphql';\nimport { debugLog } from '../debugging';\n\nexport interface ResolvedType {\n name: string;\n isRequired: boolean;\n isArray: boolean;\n}\n\ne... | typescript | edit | 0 | 1 | mit | 3038b664044b8bef7da7d740ae54f3d208fc2e0f | dotansimha/graphql-code-generator,dotansimha/graphql-code-generator,dotansimha/graphql-code-generator | packages/graphql-codegen-core/src/schema/resolve-type.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 | fd5c7bbafb436fa8a30209ea6e65d2ca71d159af | 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\n/** @jsx jsx */\nimport { useQuery } from \"@apollo/react-hooks\";\nimport { RouteComponentProps } from \"@reach/router\";\nimport { Box } from \"@theme-ui/components\";\nimport { FormattedMessage } from \"react-intl\";\nimport { jsx } ... | typescript | edit | null | null | mit | eae82cc289c5a3935c829765d6fed621ac874f22 | patrick91/pycon,patrick91/pycon | frontend/src/app/profile/index.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport const Output = ({\n result,\n reset,\n}: {\n result: string;\n reset: () => void;\n}) => {\n return (\n <>\n <div className=\"results\">\n <button data-testid=\"reset\" onClick={reset} className=\"button\">\n ... | typescript | edit | null | null | mit | 60fc2923ba5eef81a292c5ad892bd0f7f59447cd | whostolemyhat/ascii-react,whostolemyhat/ascii-react,whostolemyhat/ascii-react | src/components/Output.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, OnInit, Input } from '@angular/core';\n\n@Component({\n selector: 'app-ui-hint',\n templateUrl: './ui-hint.component.html',\n styleUrls: ['./ui-hint.component.scss']\n})\nexport class UiHintComponent {\n @Input()... | typescript | edit | 0 | 0 | mit | 11fed58b5a9410c9ad3db31f506a7827e814d283 | EvictionLab/eviction-maps,EvictionLab/eviction-maps,EvictionLab/eviction-maps,EvictionLab/eviction-maps | src/app/ui/ui-hint/ui-hint.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React, { useMemo, useCallback } from 'react';\nimport { c } from 'ttag';\nimport { getFormattedMonths, getFormattedWeekdays, getWeekStartsOn } from 'proton-shared/lib/date/date';\nimport { dateLocale } from 'proton-shared/lib/i18... | typescript | edit | null | null | mit | 16a5177178c67999bc4bd7e8f7e60eaafe395da4 | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | packages/components/components/miniCalendar/LocalizedMiniCalendar.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { mount } from 'enzyme';\nimport * as React from 'react';\nimport { Consumer, Provider } from './ItemContext';\n\ndescribe('ItemContext', () => {\n it('Propagates uuid by context', () => {\n const mock = jest.fn(() => n... | typescript | edit | null | null | mit | 863a4d09cf218ea032d171cdf56269a07d22990b | springload/react-accessible-accordion,springload/react-accessible-accordion,springload/react-accessible-accordion | src/components/ItemContext.spec.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport classnames from 'classnames';\nimport Modal, { ModalProps } from '@uiw/react-modal';\nimport { IProps } from '@uiw/utils';\nimport './style/index.less';\n\nexport interface AlertProps extends IProps, M... | typescript | edit | null | null | mit | f52c214fb708ea4d7ded8131fadc25cf81135fc7 | uiw-react/uiw,uiw-react/uiw | packages/react-alert/src/index.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { c } from 'ttag';\n\nimport { classnames, Loader, SettingsSectionWide } from '@proton/components';\n\nimport { useReferralInvitesContext } from '../ReferralInvitesContext';\nimport RewardsProgress from './RewardsProgress';\nimpo... | typescript | edit | null | null | mit | b0fb66134045b174c192e57bca62a81c56b5c7d1 | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | packages/components/containers/referral/rewards/RewardSection.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport runJest from '../__helpers__/runJest';\n\ndescribe('Jest.mock() calls', () => {\n\n it('Should run all tests using jest.mock() underneath the imports succesfully.', () => {\n const result = runJest('../hoist-test', ['--... | typescript | edit | 0 | 1 | mit | 541f407a84874f6b0d5330475062a800a4db2571 | kulshekhar/ts-jest,kulshekhar/ts-jest | tests/__tests__/jest-hoist.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n\nimport * as Hapi from 'hapi';\nimport { IRevApiOptions, RevApi } from './api/revapi';\n\nlet version = require('../package.json').version;\n\nfunction RevApiPlugin(server: Hapi.Server, options: IRevApiOptions, next: any) {\n server... | typescript | edit | 0 | 1 | mit | eb5eca250e11655a39dcb51bda8213a932cd3bd2 | RevFramework/rev-framework,RevFramework/rev-framework | packages/rev-api-hapi/src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as _ from \"underscore\";\n\nexport function createElement(type: string, props: { [name: string]: any }, ...children: (string | HTMLElement)[]): HTMLElement {\n const elem = document.createElement(type);\n for (let k in props... | typescript | edit | 0 | 1 | bsd-3-clause | abbab3dd719f1a509e301f520981dd920f2e72aa | mindriot101/bokeh,timsnyder/bokeh,schoolie/bokeh,aiguofer/bokeh,stonebig/bokeh,timsnyder/bokeh,draperjames/bokeh,DuCorey/bokeh,philippjfr/bokeh,philippjfr/bokeh,aavanian/bokeh,mindriot101/bokeh,philippjfr/bokeh,ericmjl/bokeh,jakirkham/bokeh,rs2/bokeh,schoolie/bokeh,dennisobrien/bokeh,jakirkham/bokeh,azjps/bokeh,bokeh/b... | bokehjs/src/coffee/core/util/dom.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { baseGenerator, Generator } from '../baseGenerator';\n\nconst generator: Generator = async (packageManager, npmOptions, options) => {\n baseGenerator(packageManager, npmOptions, options, 'svelte', {\n extraPackages: ['svelte... | typescript | edit | 0 | 5 | mit | ea8e9d64ad04a890cc6240baca6863b9e751d927 | kadirahq/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook | lib/cli/src/generators/SVELTE/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/*\nCopyright 2018 matrix-appservice-discord\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://w... | typescript | edit | 0 | 0 | apache-2.0 | b96794d8e76b25dd9d29cb92fc1673c793ab4ace | Half-Shot/matrix-appservice-discord | src/db/connector.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React, { FC } from 'react';\nimport { useGlobals } from '@storybook/api';\nimport { Icons, IconButton, WithTooltip, TooltipLinkList, TabButton } from '@storybook/components';\nimport { NormalizedToolbarArgType } from '../types';\... | typescript | edit | null | null | mit | 245211f968345e0d8ffe4eeca03ed6574c2646f1 | storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook | addons/toolbars/src/components/MenuToolbar.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport { AppInsights } from 'applicationinsights-js';\n\nimport { environment } from '../../environments/environment';\nimport { AdalService } from 'adal-angular4';\n\n@Injectable()\nexport c... | typescript | edit | 0 | 2 | mit | 00937579bc5e48013b91e1ab2594728d4dcd51b6 | PaulGilchrist/Angular2NodeTemplate,PaulGilchrist/angular-template,PaulGilchrist/angular-template,PaulGilchrist/angular-template,PaulGilchrist/Angular2NodeTemplate,PaulGilchrist/Angular2NodeTemplate | src/app/services/app-insights.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Service } from 'ts-express-decorators';\nimport { IDatabaseConnector, QueryType } from './database.connector';\nimport { SQLiteConnector } from './sqlite.connector';\nimport { populationQueries } from './population-queries';\n\... | typescript | edit | 0 | 1 | mit | 061f2efde8d3b81fbf4d5d419627b83275f0d580 | DavidLevayer/countable,DavidLevayer/countable,DavidLevayer/countable | server/services/database/database.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport \"raf/polyfill\";\n\nimport * as enzyme from \"enzyme\";\nimport Adapter = require(\"enzyme-adapter-react-16\");\n\nenzyme.configure({ adapter: new Adapter() });\n\nclass LocalStorageMock {\n // https://stackoverflow.com/quest... | typescript | edit | 0 | 2 | mit | 4277d91aa4acc36b18a5232c0661a06a4b5f3c54 | raviqqe/code2d,raviqqe/code2d,raviqqe/code2d,raviqqe/code2d | app/src/setupTests.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/*\n * Copyright (c) 2014-2021 Bjoern Kimminich.\n * SPDX-License-Identifier: MIT\n */\n\nimport { TranslateModule } from '@ngx-translate/core'\nimport { MAT_DIALOG_DATA, MatDialogModule, MatDialogRef } from '@angular/material/dialog'\n... | typescript | edit | 0 | 1 | mit | 8cf34a1a2de5f7abc5d022f36122e74f4a2d84a1 | bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop | frontend/src/app/code-snippet/code-snippet.component.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Model } from '../../model/model.service';\n\nexport class ThemePreset extends Model {\n\tname: string;\n\thighlight: string;\n\tbacklight: string;\n\tnotice: string;\n\ttint?: string;\n}\n\nModel.create(ThemePreset);\n\nexport ... | typescript | edit | 0 | 0 | mit | 9f7b2861d6ec30261ae892f5a25dc99f8c0f3f47 | gamejolt/frontend-lib,gamejolt/frontend-lib,gamejolt/frontend-lib,gamejolt/frontend-lib | components/theme/preset/preset.model.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {\n armor2PlugCategoryHashes,\n armor2PlugCategoryHashesByName,\n D2ArmorStatHashByName,\n} from 'app/search/d2-known-values';\nimport { PlugCategoryHashes } from 'data/d2/generated-enums';\n\nexport const armorStatHashes = [\... | typescript | edit | 0 | 1 | mit | 7305d45c27003db740e1da07e50371e5a01b83f6 | delphiactual/DIM,DestinyItemManager/DIM,DestinyItemManager/DIM,delphiactual/DIM,delphiactual/DIM,DestinyItemManager/DIM,delphiactual/DIM,DestinyItemManager/DIM | src/app/loadout/known-values.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as classNames from 'classnames';\nimport * as React from 'react';\nimport * as Label from 'react-bootstrap/lib/Label';\n\nimport { translate } from '@waldur/i18n';\n\nimport { MenuItemType } from './types';\n\ninterface MenuIte... | typescript | edit | null | null | mit | e84a9a8b188f5f434ef10ab5f6ca622bf570c379 | opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport | src/navigation/sidebar/MenuItem.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from \"react\"\nimport { Text, Box, color } from \"@artsy/palette\"\nimport { SectionContainer } from \"./SectionContainer\"\n\nexport const PromoSpace: React.FC = () => {\n return (\n <SectionContainer>\n <Box bor... | typescript | edit | null | null | mit | 166a9214ec669402f84aaee9ff72545760f8c6b8 | artsy/force,artsy/force-public,artsy/force,artsy/force,artsy/force-public,artsy/force | src/v2/Apps/Consign/Routes/MarketingLanding/Components/PromoSpace.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { newSession, status } from '../src';\nimport { log } from '../src/logger';\nimport { browser } from './browser';\nimport { session, setSession } from './session';\n\nlog.enabled = true;\n\nconst webDriverUrl = browser.hub || `ht... | typescript | edit | null | null | mit | d1cf25e057236651c9ed828d4d767084a6431e72 | mucsi96/w3c-webdriver,mucsi96/w3c-webdriver,mucsi96/w3c-webdriver | packages/w3c-webdriver/test-env/setup.ts | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { RichOutlineSyntaxNode } from './RichOutlineSyntaxNode'\nimport { UpDocument } from './UpDocument'\nimport { Writer } from '../Writing/Writer'\n\n\nexport class Blockquote extends RichOutlineSyntaxNode {\n // As a rule, we don'... | typescript | edit | 0 | 1 | mit | 82cba55ca7b81f6532256e76ad176287776f11b0 | start/up,start/up | src/SyntaxNodes/Blockquote.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport {SortableHandle} from 'react-sortable-hoc'\nimport EditorDragHandle from '@material-ui/icons/DragHandle'\nimport style from './name-input-list.css'\n\nexport const DragHandle = SortableHandle(() =>... | typescript | edit | null | null | mit | 714c9f25d4444072f1517b0ad188fb955e397514 | Holi0317/bridge-calc,Holi0317/bridge-calc,Holi0317/bridge-calc | src/name-input-list/drag-handle.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// https://github.com/hapijs/hapi/blob/master/API.md#-serverinfo\nimport {Server} from \"hapi\";\nimport * as assert from \"assert\";\n\nconst server = new Server({\n port: 8000,\n});\nserver.start();\n\n// check the correct port\nc... | typescript | edit | 0 | 0 | mit | 3d6b18467eae8940f5834142d38f0a2d15817854 | zuzusik/DefinitelyTyped,zuzusik/DefinitelyTyped,alexdresko/DefinitelyTyped,georgemarshall/DefinitelyTyped,AgentME/DefinitelyTyped,AgentME/DefinitelyTyped,arusakov/DefinitelyTyped,rolandzwaga/DefinitelyTyped,arusakov/DefinitelyTyped,alexdresko/DefinitelyTyped,laurentiustamate94/DefinitelyTyped,rolandzwaga/DefinitelyType... | types/hapi/v17/test/server/server-info.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react'\n\nexport interface EnvironmentValue<Provider extends Window = Window> {\n provider: Provider\n openfin?: Provider | null\n [key: string]: Provider | null\n}\n\nexport interface Window {\n type: string | 'd... | typescript | edit | 0 | 1 | apache-2.0 | 52a2e103e0e9221b281d89ce08c3b3e8c12069e4 | AdaptiveConsulting/ReactiveTraderCloud,AdaptiveConsulting/ReactiveTraderCloud,AdaptiveConsulting/ReactiveTraderCloud,AdaptiveConsulting/ReactiveTraderCloud | src/client/src/rt-components/Environment/EnvironmentContext.tsx | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add some typings to @truffle/compile-common to be used later"
},
{
"role": "assistant",
"content": "import { Profiler } from \"./profiler\";\nexport { Profiler };\n\ntype Compilation = {\n sourceIndexes: string[];\n contrac... | typescript | new_file | 0 | 0 | mit | e4a71461cc87a3121d1ba576d3d07b2b69a9545f | ConsenSys/truffle | packages/compile-common/src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { WatcherTimerMap, WatcherTimer, GroupId } from '../types';\r\nimport {\r\n SetWatcherTimer,\r\n CancelWatcherTick,\r\n DeleteWatcher\r\n} from '../actions/watcher';\r\nimport {\r\n SET_WATCHER_TIMER,\r\n CANCEL_NEXT_WATCHER... | typescript | edit | 0 | 5 | mit | 4d5d38721a2299f7548458d4c27c21548305d3ab | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | src/reducers/watcherTimers.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/*\n\thighlight.js definition by Niklas Mollenhauer\n\tLast Update: 10.09.2013\n\tSource Code: https://github.com/isagalaev/highlight.js\n\tProject Page: http://softwaremaniacs.org/soft/highlight/en/\n*/\n\n/// <reference path=\"highlig... | typescript | edit | 0 | 0 | mit | 226d9e8344761a081b2c88ccb4b90d7ad9b7a198 | emanuelhp/DefinitelyTyped,tarruda/DefinitelyTyped,scsouthw/DefinitelyTyped,Penryn/DefinitelyTyped,HereSinceres/DefinitelyTyped,drinchev/DefinitelyTyped,musicist288/DefinitelyTyped,raijinsetsu/DefinitelyTyped,florentpoujol/DefinitelyTyped,shovon/DefinitelyTyped,Zorgatone/DefinitelyTyped,xStrom/DefinitelyTyped,MugeSo/Def... | highlightjs/highlightjs-tests.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n\"use strict\";\r\n\r\nimport { QuickPickItem } from 'vscode';\r\nimport { CodeSnippetClient } from './codeSnippetClient';\r\n\r\nexport class CodeSnippetClientQuickPickItem implements QuickPickItem {\r\n public label: string;\r\n publi... | typescript | edit | 0 | 0 | mit | 488f8e6404d3306ccd249275cf2124bf175b2bdf | Huachao/vscode-restclient,Huachao/vscode-restclient | src/models/codeSnippetClientPickItem.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { AlbumDescriptionPipe } from './album-description.pipe';\n\ndescribe('AlbumDescriptionPipe', () => {\n it('create an instance', () => {\n const pipe = new LineSplittingPipe();\n expect(pipe).toBeTruthy();\n });\n});\n\n`... | typescript | edit | 0 | 1 | apache-2.0 | 220b00b0ac3b1787ff933818ad5d3026f11471c4 | jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog | src/app/shared/line-splitting.pipe.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Vue from 'vue';\nimport { Component, Prop } from 'vue-property-decorator';\nimport View from '!view!./user-list.html';\n\nimport { ChatRoom } from '../room';\nimport { ChatUser } from '../user';\nimport { AppChatUserListItem } fr... | typescript | edit | 0 | 3 | mit | 8febe236110ca51185a14a5918477ddf1496994d | gamejolt/gamejolt,gamejolt/gamejolt,gamejolt/gamejolt,gamejolt/gamejolt | src/app/components/chat/user-list/user-list.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport type { Awaitable } from '@antfu/utils';\nimport { existsSync, promises as fs } from 'fs';\nimport type { CustomIconLoader } from './types';\nimport { camelize, pascalize } from '../misc/strings';\n\nexport function FileSystemIcon... | typescript | edit | 0 | 5 | mit | 3d1a89ef771497e45f74cec1e93efb2ee67da7ec | simplesvg/simple-svg,simplesvg/simple-svg,simplesvg/simple-svg | packages/utils/src/loader/loaders.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport * as rawComponents from './typography/DocumentFormatting';\n\nexport * from './typography/DocumentFormatting';\n\nexport const components = Object.entries(rawComponents).reduce(\n (acc, [k, V]) => ({\... | typescript | edit | null | null | mit | e49412c448c61c3b1259b916f41aa5a3a4a15d5c | storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/react-storybook | lib/components/src/html.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport devSavegame from \"./fixtures/savegame\";\nimport devSettings from \"./fixtures/settings\";\nimport { Options } from \"./options/Options\";\nimport { SettingsStorage } from \"./options/SettingsStorage\";\nimport { cinfo } from \"... | typescript | edit | 0 | 4 | mit | bf315fd4df74199afa42af50f7042415fcbc80fe | oliversalzburg/cbc-kitten-scientists,oliversalzburg/cbc-kitten-scientists,oliversalzburg/cbc-kitten-scientists | packages/userscript/source/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { element, by, ElementFinder } from 'protractor';\nimport { P } from '../../common/world';\n\n/**\n * Created by jludvice on 13.3.17.\n */\nexport class ConnectionDetailPage {\n connectionDetailElem(): ElementFinder {\n retur... | typescript | edit | 0 | 1 | apache-2.0 | ef75ec6b2658b2e400dc03286949aa1e9e6f9c62 | lvydra/syndesis-e2e-tests,mcada/syndesis-qe,lvydra/syndesis-e2e-tests,lvydra/syndesis-e2e-tests,mcada/syndesis-qe,mcada/syndesis-qe,lvydra/syndesis-e2e-tests | e2e/connections/detail/detail.po.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\ndeclare var ts\n\nwindow.onbeforeunload = (e) => {\n if (ts.manager.current.dashboard.dirty) {\n let msg = 'Dashboard has unsaved changes. Are you sure you want to leave?'\n e.returnValue = msg\n return msg\n }\n return null... | typescript | edit | 0 | 3 | apache-2.0 | 4b8de73c3055b114f1195e12326cd9b6fef89a88 | tessera-metrics/tessera,urbanairship/tessera,tessera-metrics/tessera,urbanairship/tessera,urbanairship/tessera,aalpern/tessera,aalpern/tessera,tessera-metrics/tessera,aalpern/tessera,urbanairship/tessera,tessera-metrics/tessera,tessera-metrics/tessera,urbanairship/tessera,aalpern/tessera,aalpern/tessera | tessera-frontend/src/ts/app/handlers/check-dirty.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { SyntaxNode } from './SyntaxNode'\n\n\nexport interface InlineSyntaxNode extends SyntaxNode {\n // Represents the text of the syntax node as it should appear inline. Some inline conventions\n // don't have any e.g. (footnotes,... | typescript | edit | 0 | 0 | mit | a9c70a35568d2be5b1cc5589c4d430d24dfa5d0c | start/up,start/up | src/SyntaxNodes/InlineSyntaxNode.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/*\n * Copyright (c) 2014-2021 Bjoern Kimminich.\n * SPDX-License-Identifier: MIT\n */\n\nimport chai = require('chai')\nconst expect = chai.expect\nconst chaiAsPromised = require('chai-as-promised')\nchai.use(chaiAsPromised)\n\ndescrib... | typescript | edit | 0 | 1 | mit | a5be4a42afdea27ca3eccc9e1c7aa4c6859345e0 | bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop | test/server/webhookSpec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {ModuleWithProviders} from '@angular/core';\nimport {Routes, RouterModule} from '@angular/router';\n\nimport {LoginComponent} from './components/login.component';\nimport {RegisterComponent} from './components/register.component'... | typescript | edit | 0 | 0 | mit | 6c8f8cbe89e16d9570c67c8492d3c17c547e9fec | maurobonfietti/webapp,maurobonfietti/webapp | frontend/src/app/app.routing.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nconsole.log(\"tester\");\n\nwindow.onload = function userLogin() : void {\n fetch('/userlogin').then(response => response.text()).then((pageContent) => {\n const loginSection = document.getElementById('user-page-content') as HTMLDiv... | typescript | edit | null | null | apache-2.0 | 15c51c740ef4d1511677aefb7081aab930b70701 | googleinterns/learnbase,googleinterns/learnbase,googleinterns/learnbase,googleinterns/learnbase,googleinterns/learnbase | learnbase/src/main/webapp/ts/main.ts | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, Input, Output, EventEmitter, Type } from 'angular2/core';\nimport { ModalComponent } from './modal';\n\n@Component({\n selector: 'modal-footer',\n template: `\n <div class=\"modal-footer\">\n ... | typescript | edit | 0 | 1 | isc | c20db514f40bed31ac67734a23baa45abc24203d | dougludlow/ng2-bs3-modal,dougludlow/ng2-bs3-modal,dougludlow/ng2-bs3-modal | src/components/modal-footer.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Injectable} from \"@angular/core\";\ndeclare let JSON;\n\n@Injectable()\nexport class FlagService {\n private flags = {\n 'debug': false,\n 'realCreate': false\n };\n\n getAllFlags() {\n return this.flags;\n }\n\n ... | typescript | edit | 0 | 3 | mit | e4b6897d5a8f10584b1efebe12bd848895fb5a03 | xinbenlv/rent.zzn.im,xinbenlv/rent.zzn.im,xinbenlv/rent.zzn.im,xinbenlv/rent.zzn.im,xinbenlv/rent.zzn.im | haoshiyou/src/services/flag.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { browser, element, by } from '../../node_modules/protractor/built';\n\ndescribe('grid pager info', () => {\n\n let paginator = element(by.tagName('ngb-pagination')).$$('nav').$$('ul').$$('li'),\n gridPagerInfo = eleme... | typescript | edit | 0 | 1 | mit | 291115d6e203a6ba8832e15e9b4c1f03e7b4fece | unosquare/tubular2,unosquare/tubular2,unosquare/tubular2,unosquare/tubular2 | test/e2e/grid-pager-info.e2e-spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Copyright (c) 2016 Vadim Macagon\n// MIT License, see LICENSE file for full terms.\n\n/**\n * Style mixins for flex-box layouts based on https://github.com/PolymerElements/iron-flex-layout/\n * The naming should remain consistent wit... | typescript | edit | 0 | 0 | mit | 99e83e2ddd1163a5e4e01ebd0672ede0f2ed03e6 | debugworkbench/hydragon,debugworkbench/hydragon,debugworkbench/hydragon | app/src/renderer/components/styles.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\r\nimport { TextField, Select, Checkbox } from '@shopify/polaris';\r\n\r\ninterface Props {\r\n readonly value: string;\r\n readonly onChange: (value: string) => void;\r\n}\r\n\r\ninterface SortTypeProp... | typescript | edit | null | null | mit | a955a107a87c47338dc8b4a1fd5d4fafb7a98dc1 | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | src/components/Search/SearchFields.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 { Button } from \"../../Components/Button\";\nimport { Command } from \"../Command\";\n\ninterface ToolbarProps {\n encounterCommands: Command [];\n combatantCommands: Command [];\n}\n\nin... | typescript | edit | null | null | mit | 43ee699af27b3c8e6d39b8f23cf227a70b67d1a2 | cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative | client/Commands/components/Toolbar.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { addons, makeDecorator, StoryContext, StoryGetter, WrapperSettings } from '@storybook/addons';\nimport deprecate from 'util-deprecate';\n\nimport { REGISTER_SUBSCRIPTION } from '@storybook/core-events';\nimport { EVENTS } from '... | typescript | edit | 0 | 6 | mit | a7a5ae3fe124c5771b313475a2556acdc1bb0f4b | storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,kadirahq/react-storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook | addons/backgrounds/src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/* tslint:disable:no-unused-variable */\nimport { async, ComponentFixture, TestBed } from '@angular/core/testing';\nimport { By } from '@angular/platform-browser';\nimport { DebugElement } from '@angular/core';\n\nimport { ScoreComponen... | typescript | edit | 0 | 1 | mit | 2f9f6d1354c447c6d263cef8b9c18db66ccdcf74 | thielCole/crossfit-leaderboard,thielCole/crossfit-leaderboard,thielCole/crossfit-leaderboard | src/app/score/score.component.spec.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 | bf1ddb3d8ddeaae54bd8289a48e6d6c0987a6e27 | 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\n\nimport {Tags, TypeTags} from './type-tags';\nimport { expect } from 'chai';\nimport {LocalFileTypeService} from \"./local-file-type-service\";\nimport fs = require('fs');\nimport * as _ from \"lodash\";\n\ndescribe('Test pValue and fo... | typescript | edit | 0 | 1 | mit | 76bbfb6502ab5b353e13b64756e9b013752f91d3 | chipster/chipster-web-server,chipster/chipster-web-server,chipster/chipster-web-server,chipster/chipster-web-server,chipster/chipster-web-server | js/type-service/src/type-tags.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { NgModule, InjectionToken } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ShareModule, ShareButtons, ShareButtonsConfig, CONFIG } from '@ngx-share/core';\n\nimport { ShareButtonComponent } from... | typescript | edit | 0 | 1 | mit | f806b7d0a542ea79e2507986d39809244524df3f | MurhafSousli/ng2-sharebuttons,MurhafSousli/ng2-sharebuttons,MurhafSousli/ng2-sharebuttons | lib/button/src/share-button.module.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/*---------------------------------------------------------------------------------------------\n* Copyright (c) Alessandro Fragnani. All rights reserved.\n* Licensed under the MIT License. See License.md in the project root for licen... | typescript | edit | 0 | 3 | mit | 2aa6cac8640d0595304d185ceb7f254b7085c8cc | alefragnani/vscode-read-only-indicator,alefragnani/vscode-read-only-indicator | src/statusBar/controller.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Hacker } from 'js/server/models';\nimport * as statuses from 'js/shared/status-constants';\nimport { getApplicationStatus, getTeamApplicationStatus } from 'js/server/models/Hacker';\n\nexport const unfinishedApplicationKind = {... | typescript | edit | 0 | 5 | mit | 16a8f828e29a3ba793c267f6656725e80a02eb79 | hackcambridge/hack-cambridge-website,hackcambridge/hack-cambridge-website,hackcambridge/hack-cambridge-website,hackcambridge/hack-cambridge-website | src/js/server/apply/applicant-info.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {AfterViewInit, Component, ElementRef, Input, OnDestroy, ViewChild} from '@angular/core';\nimport {EditorConfig} from '../../models/models';\n\ndeclare const monaco: any;\ndeclare const require: any;\n\n@Component({\n selector... | typescript | edit | 0 | 1 | mit | 150b61ad6ca0cee6b567f74499ee9e3cec32d550 | tadashi-aikawa/gemini-viewer,tadashi-aikawa/gemini-viewer,tadashi-aikawa/gemini-viewer | src/app/components/editor/editor.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Directive, EventEmitter, Input, Output, TemplateRef, ViewContainerRef } from '@angular/core';\n\n@Directive({\n selector: '[ngxPermissionsOnly],[ngxPermissionsExcept]',\n\n})\nexport class NgxPermissionsRestrictStubDirective... | typescript | edit | 0 | 3 | mit | 09c7bfae6275ea4161d359ac523c85b80c036345 | AlexKhymenko/ngx-permissions,AlexKhymenko/ngx-permissions,AlexKhymenko/ngx-permissions | src/testing/permissions-restrict.directive.stub.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Http, RequestOptions, RequestMethod, ResponseOptions, Response } from '@angular/http';\nimport { MockBackend } from '@angular/http/testing';\n\nimport { ActorService } from './actor.service';\nimport { Actor } from '../models';... | typescript | edit | 0 | 1 | isc | be3ef4da4c52765e00a5ca8be0071416e620c773 | textbook/known-for-web,textbook/known-for-web,textbook/known-for-web | src/app/services/actor.service.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport { Http, Response } from '@angular/http';\nimport { Observable } from 'rxjs';\nimport 'rxjs/add/operator/map';\n\nimport { File } from '../../shared/file';\nimport { ApiTimeoutServi... | typescript | edit | 0 | 1 | apache-2.0 | b9d4ef00c3c36cb1668c668dcffc235dd1a2a95e | FAANG/faang-portal-frontend,FAANG/faang-portal-frontend,FAANG/faang-portal-frontend | app/core/services/api-file.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { ProjectWizardData } from './project-wizard-data.model';\n\nexport class Project {\n public projectName: string;\n public freelancer: string;\n public client: string;\n public startDate: number;\n public endDate: number;\n ... | typescript | edit | 0 | 1 | apache-2.0 | 38374f73a189a19812253487ac463b08943a5aad | IBMZissou/dbh17-zissou,IBMZissou/dbh17-zissou,IBMZissou/dbh17-zissou,IBMZissou/dbh17-zissou,IBMZissou/dbh17-zissou | client/src/app/models/project.model.ts | rejected_duplicate | Near-duplicate of sample 113334 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, OnInit } from '@angular/core';\nimport { ConfigService } from '../_services/config.service';\nimport { timer } from 'rxjs';\nimport { OpenhabService } from '../_services/openhab.service';\n\n@Component({\n selecto... | typescript | edit | 0 | 7 | mit | 3b36b54b96397caec5b1e9013f386b082bef62d7 | yktoo/infopi,yktoo/infopi,yktoo/infopi,yktoo/infopi | src/app/domotics/domotics.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport { Octicon, OcticonSymbol } from '../octicons'\n\ninterface IBannerProps {\n readonly id?: string\n readonly timeout?: number\n readonly dismissable?: boolean\n readonly onDismissed: () => void\... | typescript | edit | null | null | mit | e45faa86d33f295a34e389c8da27b69fc7d9dc2c | desktop/desktop,kactus-io/kactus,desktop/desktop,shiftkey/desktop,j-f1/forked-desktop,artivilla/desktop,artivilla/desktop,say25/desktop,j-f1/forked-desktop,artivilla/desktop,kactus-io/kactus,say25/desktop,j-f1/forked-desktop,kactus-io/kactus,shiftkey/desktop,desktop/desktop,shiftkey/desktop,artivilla/desktop,desktop/de... | app/src/ui/banners/banner.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport * as fs from 'fs';\n\nlet settingPath = '';\nexport function setSettingPath(path: string) {\n settingPath = path;\n}\n\ninterface Setting {\n tokens: string[];\n hide_buttons:... | typescript | edit | 0 | 4 | mit | 807e07409731749378fc2af19381c2d59c4af150 | mazun/SlackStream,mazun/SlackStream,mazun/ASlack-Stream,mazun/ASlack-Stream,mazun/SlackStream,mazun/ASlack-Stream,mazun/ASlack-Stream,mazun/SlackStream | src/services/setting.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport abstract class BasicRuleConfig {\n /** Is the rule enabled? */\n public enabled?: boolean = true;\n /** List of patterns to exclude */\n public exclude?: string[] = [];\n}\n```\n\nApply this change: Add reason attribute to ru... | typescript | edit | 0 | 0 | mit | 26870fa2e9d99603ccc266a8b62184699ecbd0c8 | larshp/abaplint,larshp/abaplint,larshp/abaplint,larshp/abapOpenChecksJS,larshp/abaplint,larshp/abapOpenChecksJS,larshp/abapOpenChecksJS | src/rules/_basic_rule_config.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\n\nexport class Hero {\n id: number;\n name: string;\n}\n\n@Component({\n selector: 'my-app',\n template: '<h1>{{title}}</h1><h2>{{hero.name}} details!</h2>'\n})\n\nexport class AppComp... | typescript | edit | 0 | 0 | mit | 3e8c3c0c307bde48722f9ccd30c813d25b3f10db | ffacon/quickstart-ng2,ffacon/quickstart-ng2,ffacon/quickstart-ng2 | app/app.component.ts | rejected_duplicate | Near-duplicate of sample 112532 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport class EncodingMock implements Xrm.Encoding {\n public xmlAttributeEncode(arg: string): string {\n throw new Error(\"Not implemented\");\n }\n public xmlEncode(arg: string): string {\n throw new Error(\"Not implemented\")... | typescript | edit | 0 | 1 | mit | 5469ff61d2b35a19f1089632aecd11b6481da674 | camelCaseDave/xrm-mock,camelCaseDave/xrm-mock | src/xrm-mock/encoding/encoding.mock.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as shell from 'shelljs-exec-proxy';\n\nshell.git.status(); // $ExpectType ExecOutputReturnValue\nshell.git.add('.'); // $ExpectType ExecOutputReturnValue\nshell.git.commit('-am', 'Fixed issue #1'); // $ExpectType ExecOutputRetu... | typescript | edit | 0 | 0 | mit | aad32876fcaea679ccd813de583bd5d0e5c6e7d8 | georgemarshall/DefinitelyTyped,borisyankov/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,dsebastien/DefinitelyTyped,georgemarshall/DefinitelyTyped,mcliment/DefinitelyTyped,markogresak/DefinitelyTyped,dsebastien/DefinitelyTyped | types/shelljs-exec-proxy/shelljs-exec-proxy-tests.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Set sidebar width to 400px"
},
{
"role": "assistant",
"content": "export const NAVBAR_HEIGHT = 56;\nexport const SIDEBAR_WIDTH = 400;\n"
}
] | typescript | new_file | 0 | 0 | apache-2.0 | 532ae3cb91b229531b851f1ef23fd8f669ff4d8d | dainst/idai-field-web,dainst/idai-field-web,dainst/idai-field-web | ui/src/constants.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, Prop, State, Listen } from '@stencil/core';\n\n@Component({\n tag: 'random-number'\n})\n\nexport class RandomNumber {\n\n @State() randomNumber: number;\n @Prop() min: number;\n @Prop() max: number;\n\n ... | typescript | edit | 0 | 1 | mit | bfc5394cff33130efbdea50ccf03f697db154dc8 | TheNerdicCoder/stencil-demo,TheNerdicCoder/stencil-demo,TheNerdicCoder/stencil-demo | src/components/random-number.tsx | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { setup } from '@cycle/run'\nimport { makeHTTPDriver } from '@cycle/http'\nimport { makeDOMDriver } from '@cycle/dom'\nimport { makeHistoryDriver } from '@cycle/history'\nimport { timeDriver } from '@cycle/time'\nimport switchPat... | typescript | edit | 0 | 1 | mit | ed341ef2a5ee045c839d722b6562297b802ba130 | wyqydsyq/unicycle,wyqydsyq/unicycle | src/client/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {expect} from \"chai\";\nimport {VariableStatement, RegularExpressionLiteral} from \"./../../../compiler\";\nimport {getInfoFromText} from \"./../testHelpers\";\n\nfunction getInfoFromTextWithInitializer(text: string) {\n con... | typescript | edit | 0 | 1 | mit | 9ce86e4d0c16dda7b4db1d6e81cf4f5dc863341d | dsherret/ts-simple-ast | src/tests/compiler/literal/regularExpressionLiteralTests.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { GitProcess, IGitResult } from '../lib'\n\n// NOTE: bump these versions to the latest stable releases\nexport const gitVersion = '2.26.0'\nexport const gitLfsVersion = '2.7.2'\n\nconst temp = require('temp').track()\n\nexport as... | typescript | edit | 0 | 1 | mit | 25f452da764fe289f745f712f29daf525e4ec2b5 | desktop/dugite,desktop/dugite,desktop/dugite | test/helpers.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {IdaiFieldDocument} from 'idai-components-2/idai-field-model';\nimport {NavigationPathInternal} from './navigation-path-internal';\n\n\n/**\n * @author Thomas Kleinke\n */\nexport interface ResourcesViewState {\n\n mainTypeDoc... | typescript | edit | 0 | 3 | apache-2.0 | 114ebb69497a5a6fdc004334c1b81d6006a3a3ac | codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client | app/components/resources/state/resources-view-state.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path=\"../../typings/jasmine/jasmine.d.ts\" />\n/// <reference path=\"../../typings/when/when.d.ts\" />\n\nimport * as when from \"when\";\n\nimport {APIv2, IAPINavIm} from \"../../src/API\";\n\ndescribe(\"APIv2\", () => ... | typescript | edit | 0 | 1 | mit | 344d472f70b9fc3976852baa03381278ab3c6981 | mapillary/mapillary-js,mapillary/mapillary-js | spec/api/APIv2.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React, { FormEvent, CSSProperties } from 'react';\nimport InputGroup from 'react-bootstrap/InputGroup';\nimport FormControl from 'react-bootstrap/FormControl';\nimport Button from 'react-bootstrap/Button';\nimport Form from 'reac... | typescript | edit | null | null | apache-2.0 | e2d6282934ecdc2d5a0096cd329663169e40335c | dainst/idai-field-web,dainst/idai-field-web,dainst/idai-field-web | ui/src/SearchBar.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react'\nimport { Switch, Route } from 'react-router-dom'\n\nimport ExtensionLogin from 'extension/src/components/ExtensionLogin'\nimport Blocks from 'v2/components/Bookmarklet/components/Blocks'\nimport EditBlock from... | typescript | edit | null | null | mit | 7845f2936e41b5dd33ed94924c8bd1e9f608d9b2 | aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell | src/extension/safari-extension/Routes.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { RuntimeAppInstance } from './runtime-app-instance';\nimport { Page } from '../../shared/model';\n\n/**\n * Runtime application model that corresponds to AppStatusResource from SCDF server.\n *\n * @author Ilayaperumal Gopinatha... | typescript | edit | 0 | 4 | apache-2.0 | 49b792d1ad98a51d5930df48cda8e5734c5781ec | BoykoAlex/spring-cloud-dataflow-ui,cppwfs/spring-cloud-dataflow-ui,cppwfs/spring-cloud-dataflow-ui,BoykoAlex/spring-cloud-dataflow-ui,spring-cloud/spring-cloud-dataflow-ui,spring-cloud/spring-cloud-dataflow-ui,cppwfs/spring-cloud-dataflow-ui,cppwfs/spring-cloud-dataflow-ui,spring-cloud/spring-cloud-dataflow-ui,spring-c... | ui/src/app/runtime/model/runtime-app.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport devSavegame from \"./fixtures/savegame\";\nimport devSettings from \"./fixtures/settings\";\nimport { Options } from \"./options/Options\";\nimport { SettingsStorage } from \"./options/SettingsStorage\";\nimport { cinfo } from \"... | typescript | edit | 0 | 5 | mit | 481e648d592d529ad2e1850cd000a5e6ae876d6b | oliversalzburg/cbc-kitten-scientists,oliversalzburg/cbc-kitten-scientists,oliversalzburg/cbc-kitten-scientists | packages/userscript/source/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport axios from 'axios';\r\nimport { API_URL } from '../constants';\r\nimport { stringToDomElement } from './parsing';\r\n\r\nexport const sendReturnHitRequest = async (hitId: string) => {\r\n try {\r\n const response = await axio... | typescript | edit | 0 | 4 | mit | ac1caa79abc2be43881b248e2292ed5385843e8e | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | src/utils/returnHit.ts | accepted | null | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.