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 packageJson from '../../package.json';\n\nexport default {\n packageJson,\n frameworkPresets: [\n require.resolve('./framework-preset-angular.js'),\n require.resolve('./framework-preset-angular-cli.js'),\n ],\n};\n\n```\... | typescript | edit | 0 | 0 | mit | 58ae0520c07570ddb43ad43fc69f89b611c23a90 | storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,kadirahq/react-storybook,storybooks/react-storybook,storybooks/storybook | app/angular/src/server/options.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 | 4308d86fbc99e28eaff7d676c44a18d1c823be6d | react-materialize/react-materialize,react-materialize/react-materialize,react-materialize/react-materialize | types/components/CollapsibleItem.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nmodule ImprovedInitiative {\n export class PlayerSuggestion {\n constructor(\n public Socket: SocketIOClient.Socket,\n public EncounterId: string\n ) {}\n\n SuggestionVisible = ko.observable... | typescript | edit | 0 | 3 | mit | 9faf1b1fb395e3d89b63a9e8ddbc418df0bfbb32 | cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative | client/Player/PlayerSuggestion.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as gulp from 'gulp';\nimport * as gulpif from 'gulp-if';\nimport * as sourcemaps from 'gulp-sourcemaps';\nimport * as typescript from 'gulp-typescript';\n\nexport const DIR_TMP = '.tmp';\nexport const DIR_DST = 'dist';\nexport ... | typescript | edit | 0 | 1 | mit | edc3e5cceb05d8ef1e430d540d39abc9926d2f5e | Farata/polymer-typescript-starter,Farata/polymer-typescript-starter | tool/common.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * Compose `middleware` returning\n * a fully valid middleware comprised\n * of all those which are passed.\n *\n * @param {Array} middleware\n * @return {Function}\n * @api public\n */\n\nexport function compose(middleware: Functi... | typescript | edit | 0 | 5 | apache-2.0 | a884d5fdf4cdcbfb2c451647bca546d79d6f1e55 | nodeswork/sbase,nodeswork/sbase | src/koa/utils.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\nimport { Navbar, AlertList, TransactionSummary } from \"walletCommon\";\n\ninterface LayoutProps {\n}\n\nconst Layout: React.SFC<LayoutProps> = ({ ...rest }) => {\n return (\n <div>\n ... | typescript | edit | null | null | mit | c9605ec82c45eb13a348eb3f6ad2942654c74ce9 | faddiv/budget-keeper,faddiv/budget-keeper,faddiv/budget-keeper,faddiv/budget-keeper | Wallet/OnlineWallet.Web.Core/ClientApp/layout.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\ninterface IAsset {\n Key: string\n GetPath(): string\n}\n\nexport namespace Images {\n\n export const Logo: IAsset = {\n Key: \"logo\",\n GetPath(): string { return require('assets/logo.png') }\n }\n\n}\n```\n\... | typescript | edit | 0 | 1 | mit | 8ac5136ef9ad9ecda07a313b8dc21dc215b923b6 | dmk2014/phaser-template,dmk2014/phaser-template,dmk2014/phaser-template | src/assets.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport interface Palette {\n primary1Color: string,\n primary2Color: string,\n primary3Color: string,\n accent1Color: string,\n accent2Color: string,\n accent3Color: string,\n textColor: string,\n secondaryTextCo... | typescript | edit | 0 | 0 | mit | 2066dc128ad36c2b959d44f7947072c6be225719 | cyclic-ui/cyclic-ui,cyclic-ui/cyclic-ui | src/styles/themes/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n#\n# Plugin (FE) config\n#\n\nplugin.tx_tevmailchimp {\n\n persistence {\n\n storagePid = {$plugin.tx_tevmailchimp.persistence.storagePid}\n\n classes {\n\n Tev\\TevMailchimp\\Domain\\Model\\Mlist {\n\n ... | typescript | edit | null | null | mit | 54c0f35ec295254cb7c8ccbd24454e18a3cb4c99 | 3ev/tev_mailchimp,3ev/tev_mailchimp | Configuration/Typoscript/setup.ts | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// TypeScript Version: 3.0\n\nimport unified = require('unified')\nimport remarkParse = require('remark-parse')\nimport remarkStringify = require('remark-stringify')\n\ntype RemarkOptions = remarkParse.RemarkParseOptions &\n remarkStri... | typescript | edit | 0 | 0 | mit | d282fef5a099cf8beb4b1fc0df6776e44b823852 | wooorm/remark | packages/remark/types/index.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React = require('react')\nimport chroma = require('chroma-js')\nimport { create } from 'react-free-style'\nimport { GREEN_SEA } from '../utils/colors'\n\nconst Style = create()\n\nconst BUTTON_STYLE = Style.registerStyle({\n pad... | typescript | edit | 0 | 2 | mit | 2c245cc44070e54a71a45ae3f180b1a9002615dd | blakeembrey/back-row,blakeembrey/back-row,blakeembrey/back-row | app/components/button.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { readFileSync, writeFileSync } from 'fs'\n\nexport default {\n read (filename) {\n const blob = readFileSync(filename).toString()\n return JSON.parse(blob)\n },\n\n write (filename, content) {\n writeFileSync(filenam... | typescript | edit | 0 | 1 | isc | d57027bb5f188017bdeb41e22e835a3411a51e1f | sean-clayton/neato-react-starterkit,sean-clayton/neato-react-starterkit | src/util/json.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { browser, by, ExpectedConditions as until, $, element } from 'protractor';\nimport { AppPage } from './app.page';\n\nexport class UserSettingsPage extends AppPage {\n\n public async gotoFeaturesTab(): Promise<FeaturesTab> {\n... | typescript | edit | 0 | 2 | apache-2.0 | 6f19dedaf6e91e714df58f5abe98027d5c451225 | ldimaggi/fabric8-test,ldimaggi/fabric8-test,ldimaggi/fabric8-test,ldimaggi/fabric8-test,ldimaggi/fabric8-test,ldimaggi/fabric8-test | ee_tests/src/page_objects/user_settings.page.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as gulp from 'gulp';\nimport * as gulpLoadPlugins from 'gulp-load-plugins';\nimport { join } from 'path';\n\nimport Config from '../../config';\nimport { makeTsProject, templateLocals } from '../../utils';\n\nconst plugins = <a... | typescript | edit | 0 | 1 | mit | decb7d059316d8527bc370b1218ff96e1fd1188a | idready/Philosophers,christophersanson/js-demo-fe,tobiaseisenschenk/data-cube,shaggyshelar/Linkup,natarajanmca11/angular2-seed,mgechev/angular-seed,guilhebl/offer-web,mgechev/angular2-seed,dmitriyse/angular2-seed,radiorabe/raar-ui,davewragg/agot-spa,tctc91/angular2-wordpress-portfolio,NathanWalker/angular2-seed-advance... | tools/tasks/seed/build.js.prod.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Action, UPDATE_FG, UpdateColorAction } from \"./Actions\"\nimport { Screen } from \"./Screen\"\n\nexport class Cursor {\n private _cursorElement: HTMLElement;\n\n constructor() {\n var cursorElement = document.crea... | typescript | edit | 0 | 2 | mit | 00af371a7058484d433e3959fe1b20c2bcb319e5 | extr0py/oni,JakubJecminek/oni,extr0py/oni,JakubJecminek/oni,extr0py/oni,JakubJecminek/oni,extr0py/oni,JakubJecminek/oni,extr0py/oni,JakubJecminek/oni | browser/src/Cursor.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\nimport ReactMde, {ReactMdeTypes} from \"../src\";\nimport * as Showdown from \"showdown\";\n\nexport interface AppState {\n mdeState: ReactMdeTypes.MdeState;\n}\n\nexport class App extends React.Com... | typescript | edit | null | null | mit | 35b84da79e1bdd816500131f8e3dc5959c7ac66f | andrerpena/react-mde,andrerpena/react-mde,andrerpena/react-mde | demo/App.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Reader} from './reader';\nimport {ReaderErrors} from './reader-errors';\n\n/**\n * Reads contents of a file.\n * Expects a UTF-8 encoded text file.\n *\n * @author Sebastian Cuy\n * @author Jan G. Wieners\n */\nexport class File... | typescript | edit | 0 | 2 | apache-2.0 | dc9cdfe4f00cb8805a272ba4ce682d649504f24a | codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client | src/app/core/import/reader/file-system-reader.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {liveQuery} from \"dexie\";\nimport {useSubscription} from \"./use-subscription\";\nimport React from \"react\";\n\nexport function useLiveQuery<T>(querier: ()=>Promise<T> | T, dependencies?: any[]): T | undefined;\nexport functi... | typescript | edit | 0 | 1 | apache-2.0 | 7343abc8368954ec481ed0798801989d1d35a1e2 | jimmywarting/Dexie.js,dfahlander/Dexie.js,dfahlander/Dexie.js,jimmywarting/Dexie.js,dfahlander/Dexie.js,jimmywarting/Dexie.js,jimmywarting/Dexie.js,dfahlander/Dexie.js | libs/dexie-react-hooks/src/dexie-react-hooks.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {FileDropDirective, FileSelectDirective} from 'ng2-file-upload';\nimport {CloudinaryImageComponent} from './cloudinary-image.component';\nimp... | typescript | edit | 0 | 0 | mit | f6c849570330aec8b87e439cc653a8f9dc34e752 | Ekito/ng2-cloudinary,Ekito/ng2-cloudinary,Ekito/ng2-cloudinary | src/cloudinary.module.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Injectable} from '@angular/core';\nimport {CanActivate, Router} from '@angular/router';\nimport {Observable} from 'rxjs';\nimport * as myGlobals from '../globals';\n\n@Injectable({providedIn: 'root'})\nexport class HomepageActiv... | typescript | edit | 0 | 2 | apache-2.0 | f153007d04f43a5cfce6e929799166c954040375 | nimble-platform/frontend-service,nimble-platform/frontend-service,nimble-platform/frontend-service,nimble-platform/frontend-service | src/app/homepage/homepage-activate.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport styled, { css } from 'styled-components';\nimport { shadows } from '~/shared/mixins';\n\nexport const StyledBottomSheet = styled.div`\n position: absolute;\n top: ${({ visible }: { visible: boolean }) =>\n visible ? 'calc(10... | typescript | edit | 0 | 0 | apache-2.0 | eb3a51b30dc0bad66c4df130acae15923aa9f071 | Nersent/Wexond,Nersent/Wexond | src/renderer/app/components/BottomSheet/style.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { ApplicationState } from '../../../shared/models/applicationState';\nimport { defineAction } from '../../reduxWithLessSux/action';\n\nexport const closeActiveProjectFile = defineAction(\n\t'closeActiveProjectFile', (state: Appli... | typescript | edit | 0 | 1 | mit | 9b168cf069338242591f67e515069dead50d16f8 | codeandcats/Polygen | src/ui/actions/editor/closeActiveProjectFile.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\n\nimport { Head, Row } from '../../components';\nimport { useDayPicker } from '../../hooks';\nimport { UIElement } from '../../types';\nimport { getWeeks } from './utils/getWeeks';\n\n/**\n * The props f... | typescript | edit | null | null | mit | 1b9a7a39583e37a778aee7aaa0531c414adb4c46 | gpbl/react-day-picker,gpbl/react-day-picker,gpbl/react-day-picker | packages/react-day-picker/src/components/Table/Table.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\r\n * Expects a string in MTurk's URL encoded date format \r\n * (e.g. '09262017' would be converted into a Date object for \r\n * September 26th, 2017)\r\n * @param encodedDate string in described format\r\n */\r\nexport const enco... | typescript | edit | 0 | 2 | mit | 0188ed897afa488a669e7589af5c1330bab732c2 | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | src/utils/dates.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nconst BY_LANGUAGE = {\n xml: \"<!-- %s -->\",\n hash: \"# %s\",\n bat: \"REM %s\",\n percent: \"% %s\",\n handlebars: \"{{!-- %s --}}\",\n doubleDash: \"-- %s\",\n block: \"/* %s */\",\n doubleLine: \"-- %s\",\n pug: \"//- %s\"... | typescript | edit | 0 | 2 | mit | 80affb69aa87518b30261aabf474103a422e385e | guywald1/vscode-prismo | src/utils/comments/commentPatterns.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport express, {Application} from 'express'\nimport helmet from 'helmet'\nimport cors from 'cors'\nimport bodyParser from 'body-parser'\n\nimport routes from '../routes'\nimport connectDb from './connectDb'\nimport {httpLoggerMiddlewar... | typescript | edit | 0 | 1 | mit | ebdd09eff48d7cf753e7a4b888f76c1c03ac8a5b | ericnishio/express-boilerplate,ericnishio/express-boilerplate,ericnishio/express-boilerplate | src/app/createApp.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nimport os from 'os';\n\... | typescript | edit | 0 | 2 | mit | 2cbcbd1480af851b4ab0e3c6caf5044a78ab05e5 | facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper | desktop/app/src/utils/info.tsx | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as slicer from \"./advanced_slicer\";\nimport * as three_d from \"./core_threed\";\nimport * as printer from \"./printer_config\";\nimport * as slicer_job from \"./slicer_job\";\nimport * as units from \"./units\";\n\nexport {\... | typescript | edit | 0 | 0 | apache-2.0 | 8e76ee934b650be5143fea08523bff40d6125349 | Microtome/microtome,DanielJoyce/microtome,Microtome/microtome,Microtome/microtome,DanielJoyce/microtome,DanielJoyce/microtome,DanielJoyce/microtome | lib/ts/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\nimport { NavigationEnd, Router } from '@angular/router';\n\nimport 'rxjs/add/operator/filter';\n\n@Component({\n selector: 'app-root',\n templateUrl: './app.component.html',\n styleUrls: ['... | typescript | edit | 0 | 1 | bsd-3-clause | 840416d8bd5cf9a693dec62b9a45afb1ece4e060 | cumulous/web,cumulous/web,cumulous/web,cumulous/web | src/app/app.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { browser } from 'protractor';\nimport { HomePage } from './home.po';\nimport 'tslib';\n\ndescribe('Home', function() {\n\n let home: HomePage;\n\n beforeEach(() => {\n home = new HomePage();\n home.navigateTo();\n });\n... | typescript | edit | 0 | 1 | mit | 0bfc4ecdf0d4115f32f1dff198cbbd94dd5e034e | marissa-hagglund/VA-Audiology-Website,marissa-hagglund/VA-Audiology-Website,marissa-hagglund/VA-Audiology-Website | src/app/home/home.e2e.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { ReactNode } from 'react';\nimport { c } from 'ttag';\n\nimport { classnames } from '../../helpers';\nimport Icon from '../../components/icon/Icon';\nimport { Button } from '../../components';\n\ninterface Props {\n children:... | typescript | edit | null | null | mit | 750a159a6a7f6ac22ff6239b37019f42f554dc1d | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | packages/components/containers/topBanners/TopBanner.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 * as ReactDOM from 'react-dom';\nimport {observable} from 'mobx';\nimport {observer} from 'mobx-react';\n\ndeclare var require;\nconst DevTools = require('mobx-react-devtools').default; // Use imp... | typescript | edit | null | null | mit | 328f584d5205e5614a774cd9f4c9f30b32faba94 | mweststrate/mobservable-react-typescript,mweststrate/mobservable-react-typescript,mweststrate/mobservable-react-typescript | src/index.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\ndeclare const observableSymbol: symbol;\nexport default observableSymbol;\n\ndeclare global {\n export interface SymbolConstructor {\n readonly observable: unique symbol;\n }\n}\n\n```\n\nApply this change: refactor: Revert to `sym... | typescript | edit | 0 | 0 | mit | 72ce7dcc5d22f8a67ec928b61e879e1ded7a0869 | sindresorhus/symbol-observable | index.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport path from 'path';\r\nimport execa from 'execa';\r\n\r\nexport const inputRoot = path.resolve(__dirname, '..');\r\n\r\nexport const outputSharedRoot = `${inputRoot}/public`;\r\nconst outputVersion = process.env.NODE_ENV === 'ci'\r... | typescript | edit | 0 | 1 | bsd-2-clause | 0b04dc293b7d9bb203d533767742f20cb9a87283 | ashmind/SharpLab,ashmind/SharpLab,ashmind/SharpLab,ashmind/SharpLab,ashmind/SharpLab,ashmind/SharpLab | source/WebApp/scripts/shared.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n'use strict';\n\nexport const crystalConfiguration = {\n\t// Add indentation rules for crystal language\n\tindentationRules: {\n\t\t// /^.*(\n\t\t// ((\n\t\t// ((if|elsif|lib|fun|module|struct|class|def|macro|do|rescue)\\s... | typescript | edit | 0 | 1 | mit | 988927c8fb25e457a0564d2c7956138c4c2259ed | faustinoaq/vscode-crystal-lang,faustinoaq/vscode-crystal-lang | src/crystalConfiguration.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {exec} from 'child_process';\n\nexport function execAsync(command: string) {\n return new Promise<any>(\n (resolve, reject) => exec(command, (error, stdout, stderr) => {\n if (error) {\n reject... | typescript | edit | 0 | 2 | mit | d86314b658349e4537025973aa10468145eff9ef | AArnott/Nerdbank.GitVersioning,AArnott/Nerdbank.GitVersioning,AArnott/Nerdbank.GitVersioning | src/nerdbank-gitversioning.npm/ts/asyncprocess.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { git } from './core'\nimport { Repository } from '../../models/repository'\nimport { assertNever } from '../fatal-error'\n\n/** The reset modes which are supported. */\nexport const enum GitResetMode {\n Hard = 0,\n Soft,\n M... | typescript | edit | 0 | 4 | mit | d51401210b8ac4bba52f5b8d090110999ad74a96 | hjobrien/desktop,j-f1/forked-desktop,say25/desktop,j-f1/forked-desktop,BugTesterTest/desktops,artivilla/desktop,shiftkey/desktop,desktop/desktop,say25/desktop,shiftkey/desktop,say25/desktop,j-f1/forked-desktop,desktop/desktop,kactus-io/kactus,gengjiawen/desktop,desktop/desktop,shiftkey/desktop,BugTesterTest/desktops,ka... | app/src/lib/git/reset.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as DOM from \"../../core/util/dom\";\n\ninterface ToolbarProps {\n location: \"above\" | \"below\" | \"left\" | \"right\";\n sticky: \"sticky\" | \"non-sticky\";\n logo?: \"normal\" | \"grey\";\n}\n\nexport default (props: T... | typescript | edit | null | null | bsd-3-clause | ca5b6cb4dae32b4a084fc356558bd828a4a3d5c6 | percyfal/bokeh,percyfal/bokeh,DuCorey/bokeh,dennisobrien/bokeh,philippjfr/bokeh,mindriot101/bokeh,aiguofer/bokeh,timsnyder/bokeh,timsnyder/bokeh,Karel-van-de-Plassche/bokeh,DuCorey/bokeh,draperjames/bokeh,ericmjl/bokeh,percyfal/bokeh,bokeh/bokeh,rs2/bokeh,azjps/bokeh,schoolie/bokeh,dennisobrien/bokeh,aiguofer/bokeh,jak... | bokehjs/src/coffee/models/tools/toolbar_template.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as feathers from 'feathers';\n\ndeclare module 'feathers' {\n interface Service<T> {\n before(hooks: hooks.HookMap);\n after(hooks: hooks.HookMap);\n hooks(hooks: hooks.HooksObject);\n }\n}\n\ndeclare function hooks(... | typescript | edit | 0 | 0 | mit | 7df95e343655463140eedc6fc7addf80a06648e8 | feathersjs/feathers-hooks | index.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {createContext} from 'react'\n\nexport interface PortalContextInterface {\n element: HTMLElement\n}\n\nexport const PortalContext = createContext<PortalContextInterface | null>(null)\n\n```\n\nApply this change: [components] Add... | typescript | edit | 0 | 2 | mit | 6cc81ab0eb748f9262472bdc6844daac8492e5dd | sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity | packages/@sanity/components/src/portal/context.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {} from 'mocha';\nimport { getApplication, getTransitionController } from './util/app/App';\n\ndescribe('AbstractTransitionControllerSpec', () => {\n // TODO: Create tests\n});\n\n```\n\nApply this change: Add tests for the Abst... | typescript | edit | 0 | 1 | mit | 730924633f7c77d6814e987f32667f29959ed0fd | larsvanbraam/vue-transition-component,larsvanbraam/vue-transition-component,larsvanbraam/vue-transition-component | test/AbstractVueTransitionController.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\n\nexport type InternalStateType = {\n [key: string]: any\n};\n\n@Injectable()\nexport class AppState {\n _state: InternalStateType = {};\n\n constructor() {\n }\n\n // already return a c... | typescript | edit | 0 | 1 | mit | d884107059024291c1da43e7886f04a5dc102e6e | johndi9/ng2-web,johndi9/ng2-web,johndi9/ng2-web | src/app/services/app.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as express from \"express\";\nimport * as bodyParser from \"body-parser\";\nimport * as http from \"http\";\nimport ConfigurationChooser from \"./config/configurationChooser\";\nimport Configuration from \"./config/configuratio... | typescript | edit | 0 | 1 | mit | fb3a21a92a6193dcf5309738c7aab90faf29c1f5 | BugBusterSWE/MaaS,BugBusterSWE/MaaS,BugBusterSWE/MaaS,BugBusterSWE/MaaS | src/maas.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport test from 'ava'\n\ntest('1 + 2 = 3', t => {\n t.is(1 + 2, 3)\n})\n\n```\n\nApply this change: Add some types to test case"
},
{
"role": "assistant",
"content": "import test from 'ava'\n\nfunction add (x: number, y: n... | typescript | edit | 0 | 1 | mit | 00d31f8c38d21473fabba7188f5ae6f9d52594e0 | andywer/ava-ts,andywer/ava-ts | test/sample.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\ndeclare module 'scrypt' {\n\n interface ErrorCallback<O> {\n (err, obj: O);\n }\n\n interface ParamsObject {}\n\n export function params(maxtime: number, maxmem?: number, max_memefrac?: number, cb?: ErrorCallback<Para... | typescript | edit | 0 | 1 | mit | 0f3444b4c62a205f045bbd721964dad8bea9f850 | GreenPix/dilia,Nemikolh/dilia,GreenPix/dilia,GreenPix/dilia,Nemikolh/dilia,GreenPix/editor,GreenPix/editor,GreenPix/editor,GreenPix/dilia,GreenPix/editor,Nemikolh/dilia,Nemikolh/dilia | server/custom_typings/scrypt.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { addCronJob } from '../cronUtil';\n\nexport const releaseEmailBatches = ({now}) => {\n}\n\naddCronJob({\n name: \"Hourly notification batch\",\n schedule(parser) {\n return parser.cron('0 ? * * *');\n },\n job() {\n co... | typescript | edit | 0 | 1 | mit | 683a01555d5081876624143c193d48b06798d4b2 | Discordius/Telescope,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Lesswrong2,Discordius/Telescope | packages/lesswrong/server/emails/emailCron.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { decrementByDot, getByDot, setByDot } from './helper';\n\n/**\n * updates the unlock countdown on a stat\n * @export\n * @returns\n */\nexport function updateUnlockCountdown(pathToStat = 'data.stat', pathToUser = 'stat.user') {\... | typescript | edit | 0 | 2 | mit | be441b4ce3fef5966243b1cd1d5d5e44a0bb372e | knowledgeplazza/knowledgeplazza,knowledgeplazza/knowledgeplazza,knowledgeplazza/knowledgeplazza | api/hooks/archive-item.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as fs from 'fs';\n\nclass Logger {\n fileName: string;\n constructor(fileName: string) {\n this.fileName = fileName;\n }\n\n appendLine(line: string) {\n fs.appendFile(`./logs/${this.fileName}`, `${new... | typescript | edit | 0 | 2 | mit | acfe809b3251a99449af591e85765046ce95d36d | popstarfreas/Dimensions,popstarfreas/Dimensions,popstarfreas/Dimensions | logger.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Box, color, Separator } from \"@artsy/palette\"\nimport React from \"react\"\n\nexport const Header: React.SFC<any> = props => {\n return (\n <Box height={100} mb={30} mt={[40, 120]}>\n <Box mb={40} background={color(\... | typescript | edit | null | null | mit | 2fa5007a899e5720441f0f75fbe5fc1820a9649c | artsy/reaction,artsy/reaction-force,artsy/reaction,xtina-starr/reaction,artsy/reaction,xtina-starr/reaction,artsy/reaction-force,xtina-starr/reaction,xtina-starr/reaction | src/Apps/Search/Components/SearchResultsSkeleton/Header.tsx | rejected_code_smell | Internal duplication: ~554% of the file is inside repeated 12+ line blocks | null |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { APPS } from 'proton-shared/lib/constants';\nimport React from 'react';\nimport {\n PrivateHeader,\n useActiveBreakpoint,\n TopNavbarListItemContactsDropdown,\n TopNavbarListItemSettingsButton,\n} from 'react-compone... | typescript | edit | null | null | mit | 699d1b37dcea49c7f682118c5a4972b2a3afab72 | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | applications/drive/src/app/components/layout/DriveHeader.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Convention } from './Convention'\nimport { TokenMeaning } from './Token'\nimport { MediaSyntaxNodeType } from '../../SyntaxNodes/MediaSyntaxNode'\nimport { MediaConvention } from './MediaConvention'\nimport { AudioNode } from '... | typescript | edit | 0 | 0 | mit | 62e2e731991a1f6bd530d1d48607a65bfffd5757 | start/up,start/up | src/Parsing/Inline/MediaConventions.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport flowRight from 'lodash-es/flowRight'\nimport {bindActionCreators} from 'redux'\nimport {connect} from 'react-redux'\nimport {translate} from 'react-i18next'\nimport ListItem from '@material-ui/core... | typescript | edit | null | null | mit | 1fa5302e723dd380c860e8d27ee2da3ba3ee932b | Holi0317/bridge-calc,Holi0317/bridge-calc,Holi0317/bridge-calc | src/entry/import-names/name-list-entry.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 * as Highlight from 'react-highlight';\n\nimport { Container } from './../../../../../../src/layout';\nimport { Title, Subtitle } from './../../../../../../src';\n\nconst Start = (props) => (\n ... | typescript | edit | null | null | mit | 68ddc9eced98d10e60dbdd7cc734ad9119adb10c | AlgusDark/bloomer,AlgusDark/bloomer | docs/src/Scenes/Documentation/Overview/Scenes/Start.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { expect } from 'chai'\nimport Up from'../../../index'\nimport { InlineUpDocument } from'../../../SyntaxNodes/InlineUpDocument'\nimport { PlainTextNode } from'../../../SyntaxNodes/PlainTextNode'\n\n\ncontext('Inline documents com... | typescript | edit | 0 | 1 | mit | 1d8588de4cb627ba18778c5eae62f4d831e7730a | start/up,start/up | src/Test/Ast/InlineDocument/OutlineConventions.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/*!\n * V4Fire Client Core\n * https://github.com/V4Fire/Client\n *\n * Released under the MIT license\n * https://github.com/V4Fire/Client/blob/master/LICENSE\n */\n\nimport iData, { component, prop, watch } from 'super/i-data/i-data';... | typescript | edit | 0 | 3 | mit | 4546fe961461f891f81f63c4829cb0d19c7928d8 | V4Fire/Client,V4Fire/Client,V4Fire/Client,V4Fire/Client | src/base/b-remote-provider/b-remote-provider.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// This is the root component for #search-page\n\nimport React from 'react'\n\nimport Emitter from '../../emitter'\nimport Crowi from 'client/util/Crowi'\nimport Icon from 'components/Common/Icon'\n\ninterface Props {\n crowi: Crowi\n}... | typescript | edit | null | null | mit | 49537b35259c368c073180def9c504e15f63bda2 | crowi/crowi,crowi/crowi,crowi/crowi | client/components/NavigationDrawer/NavigationDrawerOpener.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Observable} from \"rxjs/Observable\";\nimport {Mediastore} from 'idai-components-2/datastore';\n\n\nexport class FakeMediastore implements Mediastore {\n\n private basePath: string = 'store/';\n \n constructor() {\n ... | typescript | edit | 0 | 1 | apache-2.0 | 496f74f1cec0a388af945fe435b0785a6dba48ad | codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client | app/datastore/fake-mediastore.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/* Copyright 2019 Google Inc. All Rights Reserved.\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 ht... | typescript | edit | 0 | 1 | apache-2.0 | 9e67398e9a8ccbefa67af34f31bedc5fbb14ecb7 | google/chicago-brick,google/chicago-brick,google/chicago-brick,google/chicago-brick | client/network/network.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nmodule app.tree {\n\n export class TreeService {\n\n static $inject = ['ElementsFactoryService'];\n\n public elements : any = [];\n\n constructor(elementsFactoryService: app.core.ElementsFactoryService){\n ... | typescript | edit | 0 | 7 | mit | 847830a5ca56404cee0e5edf28d9e3e0c9340748 | pancho111203/JsonFormsEditor,FelixThieleTUM/JsonFormsEditor,eclipsesource/JsonFormsEditor,pancho111203/JsonFormsEditor,eclipsesource/JsonFormsEditor,FelixThieleTUM/JsonFormsEditor,pancho111203/JsonFormsEditor,eclipsesource/JsonFormsEditor,FelixThieleTUM/JsonFormsEditor,FelixThieleTUM/JsonFormsEditor,eclipsesource/JsonF... | app/src/components/tree/tree.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { ipcRenderer } from 'electron'\nimport DocumentRenderer from './document-renderer'\n\nexport default class AnsiRenderer implements DocumentRenderer {\n private ansiContainer = document.getElementById('ansi_container')!\n\n ... | typescript | edit | 0 | 2 | mit | 69f543229ff7b6c7e17af16b63fc689009a75463 | nrlquaker/nfov,nrlquaker/nfov | src/ui/document/renderer/ansi-renderer.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport const SERVER_PORT = process.env.SERVER_PORT || 5000;\nexport const OPENVIDU_URL = process.env.OPENVIDU_URL || 'https://localhost:4443';\nexport const OPENVIDU_SECRET = process.env.OPENVIDU_SECRET || 'MY_SECRET';\nexport const CAL... | typescript | edit | 0 | 0 | apache-2.0 | 7b16cd3dbb82771c0b88f2d98bf471abac138c2c | OpenVidu/openvidu-tutorials,OpenVidu/openvidu-tutorials,OpenVidu/openvidu-tutorials,OpenVidu/openvidu-tutorials,OpenVidu/openvidu-tutorials,OpenVidu/openvidu-tutorials,OpenVidu/openvidu-tutorials,OpenVidu/openvidu-tutorials,OpenVidu/openvidu-tutorials | openvidu-call/openvidu-call-back/src/config.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {ExerciseHistory} from \"./exercisehistory\";\nexport class TimeHistory extends ExerciseHistory {\n private distance: number;\n private duration: number;\n\n getHistoryId(): number {\n return this.historyId;\n ... | typescript | edit | 0 | 1 | mit | bd01ff260d6a4eadd984340997ed80a01018873c | pbraunstein/trackercise,pbraunstein/trackercise,pbraunstein/trackercise,pbraunstein/trackercise,pbraunstein/trackercise | app/static/models/barcharts/timehistory.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { HandleRequest } from './HandleRequest';\nimport { Jovo } from './Jovo';\nimport { PluginConfig } from './Plugin';\nimport { PersistableUserData } from './JovoUser';\nimport { PersistableSessionData } from './JovoSession';\nimpo... | typescript | edit | 0 | 1 | apache-2.0 | 7f3aa3215b7bd7aa8d129801a1eb04bf66f5295e | jovotech/jovo-framework-nodejs,jovotech/jovo-framework-nodejs | framework/src/interfaces.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Sans, Spacer, Tags } from \"@artsy/palette\"\nimport { Genes_artist } from \"__generated__/Genes_artist.graphql\"\nimport React, { Component } from \"react\"\nimport { createFragmentContainer, graphql } from \"react-relay\"\nim... | typescript | edit | null | null | mit | 843a70453bf252c01df29ca361f8f392969ae8ab | artsy/reaction,xtina-starr/reaction,artsy/reaction,xtina-starr/reaction,artsy/reaction-force,artsy/reaction-force,artsy/reaction,xtina-starr/reaction,xtina-starr/reaction | src/Apps/Artist/Routes/Overview/Components/Genes.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport styled from 'styled-components';\nimport { centerImage } from '~/shared/mixins';\nimport { icons } from '../../constants';\n\nexport const StyledSearchBox = styled.div`\n position: absolute;\n top: 15%;\n left: 50%;\n width: ... | typescript | edit | 0 | 0 | apache-2.0 | fda5af3f7d9ecb4d792f97716954f5186c148dca | Nersent/Wexond,Nersent/Wexond | src/renderer/app/components/SearchBox/style.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http... | typescript | edit | 0 | 0 | apache-2.0 | a6d22d9954dc04c3e299dcb175751305d1004b28 | GoogleChrome/web-vitals,GoogleChrome/web-vitals | src/deprecated.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { singleError } from '../../harness/parser'\nimport { MissingElseError } from '../missingElse'\n\nit('detects missing Else case', () => {\n singleError(\n `\n if (2 === 2) {\n var x = 2;\n }\n `,\n {\n err... | typescript | edit | 0 | 1 | mit | 7e83957a9feeab01530a428d4385171fad86de04 | evansb/source-toolchain,evansb/source-toolchain | packages/toolchain/src/rules/__tests__/missingElse.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport {connect} from 'react-redux'\n\nimport Snackbar from 'material-ui/Snackbar'\nimport { hideGlobalMessage } from './actions'\n\ninterface IGlobalMessageProps {\n isOpen: boolean,\n message: str... | typescript | edit | null | null | mit | 103c7173df6ac76713ddf20b60b882018e740a12 | frycz/frontend-boilerplate,frycz/quick-note,frycz/quick-note,frycz/frontend-boilerplate,frycz/frontend-boilerplate,frycz/quick-note | src/containers/message/globalMessage.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nconst process = require('process');\n\nconst loadApp = require('./apps');\nimport config from './config';\nconst seed = require('./seeds/');\n\nimport logger from './apps/lib/logger';\n\n(async () => {\n if (process.env.SEED_ON_START =... | typescript | edit | 0 | 3 | mit | 536e8653ade3f593f338c3b66a916c4e38e1c00c | CodeForCharlotte/CMPD-Holiday-Gift,CodeForCharlotte/CMPD-Holiday-Gift,CodeForCharlotte/CMPD-Holiday-Gift,CodeForCharlotte/cmpd-holiday-gift-backend,CodeForCharlotte/CMPD-Holiday-Gift,CodeForCharlotte/cmpd-holiday-gift-backend,CodeForCharlotte/cmpd-holiday-gift-backend | server/serve.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 | rejected_duplicate | Near-duplicate of sample 113358 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport { AppStore, Route } from './store';\nimport { reaction } from 'mobx';\nimport { observer } from 'mobx-react';\n\ninterface RouterProps {\n store: AppStore;\n}\n\ninterface RouterState {\n Co... | typescript | edit | null | null | mit | d7572de554268ac0f3fe05ae5fccaa338792ae16 | misantronic/rbtv.ts.youtube,misantronic/rbtv.ts.youtube,misantronic/rbtv.ts.youtube | src/router.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React, { FunctionComponent } from 'react';\nimport { Row } from 'react-bootstrap';\nimport { reduxForm } from 'redux-form';\n\nimport { OfferingAutocomplete } from '@waldur/marketplace/offerings/details/OfferingAutocomplete';\nim... | typescript | edit | null | null | mit | 7d426f8069f8d57d2c6ed17d0ee0e07e97c1e8cf | opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport | src/marketplace/resources/list/SupportResourcesFilter.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as assign from 'lodash/assign';\n\nimport { requestApi, Config as RequestApiConfig } from './utils/requestApi';\n\nclass SDK {\n private config: FindifySDK.Config;\n private requestApiConfig: RequestApiConfig;\n\n private ma... | typescript | edit | 0 | 1 | mit | 90cb428697d4eadbad7b63aa4ad8cd4802231d86 | findify/javascript-sdk,findify/javascript-sdk | src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport interface Encoder {\n encode(data: ImageData): Promise<ArrayBuffer | SharedArrayBuffer>;\n}\n\nexport interface Decoder {\n decode(data: ArrayBuffer): Promise<ImageBitmap>;\n}\n\n```\n\nApply this change: Remove `SharedArrayBuf... | typescript | edit | 0 | 0 | apache-2.0 | 9d8f88555608145be312980dbb39dd0847a691bf | GoogleChromeLabs/squoosh,GoogleChromeLabs/squoosh,GoogleChromeLabs/squoosh,GoogleChromeLabs/squoosh,GoogleChromeLabs/squoosh,GoogleChromeLabs/squoosh | src/lib/codec-wrappers/codec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\ninterface IRunLengthEncoding {\n encode(data: string): string\n decode(encodedData: string): string\n\n}\n\nexport default class RunLengthEncoding implements IRunLengthEncoding {\n encode(data: string): string {\n throw ... | typescript | edit | 0 | 1 | mit | 15a41d0060a2005799b1096b255a1f48d5cdd03f | rootulp/exercism,rootulp/exercism,rootulp/exercism,rootulp/exercism,rootulp/exercism,rootulp/exercism,rootulp/exercism,rootulp/exercism | typescript/run-length-encoding/run-length-encoding.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path=\"../../typings/jquery/jquery.d.ts\" />\nimport * as $ from 'jquery';\nimport {restoreToolboxSettings} from './toolbox';\n\nimport {ReaderToolsModel} from './decodablereader/readertoolsmodel'\n\nexport function canUn... | typescript | edit | 0 | 3 | mit | 97bb64b3c49a65ad765b09166b4205a058ffeb8d | JohnThomson/BloomDesktop,andrew-polk/BloomDesktop,gmartin7/myBloomFork,JohnThomson/BloomDesktop,andrew-polk/BloomDesktop,gmartin7/myBloomFork,StephenMcConnel/BloomDesktop,BloomBooks/BloomDesktop,gmartin7/myBloomFork,JohnThomson/BloomDesktop,BloomBooks/BloomDesktop,JohnThomson/BloomDesktop,BloomBooks/BloomDesktop,BloomB... | src/BloomBrowserUI/bookEdit/toolbox/toolboxBootstrap.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { useEffect } from \"react\";\n\nimport { maybe } from \"../misc\";\nimport useListSelector from \"./useListSelector\";\n\ninterface ConnectionNode {\n id: string;\n}\nfunction useBulkActions(list: ConnectionNode[]) {\n const l... | typescript | edit | 0 | 1 | bsd-3-clause | dfb41165a989b798c7840d30cebe8b26ba9929c0 | UITools/saleor,UITools/saleor,maferelo/saleor,UITools/saleor,UITools/saleor,maferelo/saleor,maferelo/saleor,mociepka/saleor,UITools/saleor,mociepka/saleor,mociepka/saleor | saleor/static/dashboard-next/hooks/useBulkActions.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport loadable from \"@loadable/component\"\nimport { RouteConfig } from \"found\"\nimport { graphql } from \"react-relay\"\n\nexport const conversationRoutes: RouteConfig[] = [\n {\n path: \"/user/conversations\",\n displayFull... | typescript | edit | 0 | 1 | mit | eeafb13948b62e53cbe2fa6601a30805071c8db0 | eessex/force,artsy/force,eessex/force,joeyAghion/force,artsy/force-public,oxaudo/force,eessex/force,artsy/force,joeyAghion/force,oxaudo/force,joeyAghion/force,oxaudo/force,oxaudo/force,artsy/force,artsy/force,joeyAghion/force,artsy/force-public,eessex/force | src/v2/Apps/Conversation/routes.tsx | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport mozjpeg_enc, { MozJPEGModule } from '../../../codecs/mozjpeg_enc/mozjpeg_enc';\nimport wasmUrl from '../../../codecs/mozjpeg_enc/mozjpeg_enc.wasm';\nimport { EncodeOptions } from './encoder-meta';\nimport { initEmscriptenModule }... | typescript | edit | 0 | 2 | apache-2.0 | 6b007a02352118e2769235f7ac2b2b67a32b109d | GoogleChromeLabs/squoosh,GoogleChromeLabs/squoosh,GoogleChromeLabs/squoosh,GoogleChromeLabs/squoosh,GoogleChromeLabs/squoosh,GoogleChromeLabs/squoosh | src/codecs/mozjpeg/encoder.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { TruffleDB } from \"truffle-db\";\nimport { ArtifactsLoader } from \"./artifacts\";\nimport { schema as rootSchema } from \"truffle-db/schema\";\nimport { Workspace, schema } from \"truffle-db/workspace\";\nconst tmp = require(\... | typescript | edit | 0 | 1 | mit | 917b90c63d7d9180456c87fd9721bb2bc4cbbaf9 | ConsenSys/truffle | packages/truffle-db/src/loaders/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React, { PropsWithChildren, ReactElement } from 'react'\nimport { Link as HyperLink, LinkProps } from 'react-router-dom'\n\nexport default function Link({\n to,\n children,\n ...rest\n}: PropsWithChildren<LinkProps>): ReactEle... | typescript | edit | null | null | mit | 725a89f9e8ab1f0d969b3c1592f0912281cbaa7a | daltonmenezes/daltonmenezes.github.io,daltonmenezes/daltonmenezes.github.io,daltonmenezes/daltonmenezes.github.io | src/components/Layout/Link/index.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {\n ComponentClass,\n ComponentDefinition as GlimmerComponentDefinition\n} from '@glimmer/runtime';\nimport ComponentManager from './component-manager';\nimport Component from './component';\nimport ComponentFactory from './com... | typescript | edit | 0 | 1 | mit | 39f5376b52f99ae5d6e8ddbafde23da113805cd1 | glimmerjs/glimmer.js,glimmerjs/glimmer.js,glimmerjs/glimmer.js,glimmerjs/glimmer.js | packages/@glimmer/component/src/component-definition.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as Path from \"path\";\n\nexport function cleanGlobPatterns(files: string | string[], excludes: string[]): string[] {\n excludes = excludes.map((s: string) => \"!\" + s.replace(/!/gi, \"\"));\n\n return []\n .concat(files ... | typescript | edit | 0 | 3 | mit | b955ccf31504d29bb5a6379caf27d16bb21a3d04 | Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators | packages/common/src/server/utils/cleanGlobPatterns.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\ndeclare module 'react-native-modal' {\n import { Component, ReactNode } from 'react'\n import { StyleProp, ViewStyle } from 'react-native'\n\n export interface ModalProps {\n animationIn?: string\n animationInTiming?: number\n ... | typescript | edit | 0 | 0 | mit | dd65834c2af56006041d3347a3262265e74080f8 | react-native-community/react-native-modal,react-native-community/react-native-modal,react-native-community/react-native-modal,react-native-community/react-native-modal | src/index.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nglobal._ = require(\"underscore\");\nglobal.$injector = require(\"../lib/yok\").injector;\n$injector.require(\"config\", \"../lib/config\");\n$injector.require(\"resources\", \"../lib/resource-loader\");\n```\n\nApply this change: Add c... | typescript | edit | 0 | 1 | apache-2.0 | dffed37ec335c48e73129eb3bcf4104a030d5fec | Icenium/icenium-cli,Icenium/icenium-cli | test/test-bootstrap.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Libraries\nimport React, {PureComponent} from 'react'\n\n//Components\nimport {MultiSelectDropdown, Dropdown} from 'src/clockface'\n\n// Types\nimport {User} from '@influxdata/influx'\n\ninterface Props {\n users: User[]\n onSelect... | typescript | edit | null | null | mit | 945505839f9c446854fadbeef57c277205d3699c | mark-rushakoff/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,influxdb/influxdb,nooproblem/influxdb,li-ang/influxdb,influxdb/influxdb,nooproblem/influxdb,nooproblem/influxdb,li-ang/influxdb,mark-rushakoff/influxd... | ui/src/members/components/SelectUsers.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 { ToggleThemeButton } from \"./ToggleThemeButton\";\n\nexport function Header() {\n return (\n <nav className=\"navbar\">\n <a className=\"navbar-brand\" href=\"images/avatar.jpg\" title=\"C... | typescript | edit | null | null | mit | eeed5e50da724789e9a25168353fc9e7c6b2db1a | felladrin/felladrin.github.io,felladrin/felladrin.github.io | src/components/Header.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';\n\nimport { Hero } from './hero';\nimport { HeroService } from './hero.service';\n\n@Component({\n selector: 'my-dashboard',\n templateUrl: 'app/dashboard.component.html'\n})\n\nexpor... | typescript | edit | 0 | 1 | mit | d44e12e11638877902201bde87c1097cb8c3a334 | jjhampton/angular2-tour-of-heroes,jjhampton/angular2-tour-of-heroes,jjhampton/angular2-tour-of-heroes | app/dashboard.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// import all the examples\nimport BasicInteractiveMap from \"../examples/BasicInteractiveMap\";\nimport HighResolutionMap from \"../examples/HighResolutionMap\";\n\nimport Example from \"../components/Example\";\nimport Header from \".... | typescript | edit | null | null | mit | ddd33055eeeb3dab10663d26c9eb812cdb22ef31 | Josh-ES/react-here-maps,Josh-ES/react-here-maps | demo/containers/App.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nmodule ImprovedInitiative {\n export class EventLog {\n Events = ko.observableArray<string>();\n \n LatestEvent = ko.pureComputed(() => this.Events()[this.Events().length - 1] || \"Welcome to Improved Initiative!... | typescript | edit | 0 | 2 | mit | cfea2bb5005074978ad600703b2c429b456e31fc | cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative | client/Widgets/EventLog.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport { NextPageContext } from 'next';\nimport Link from 'next/link';\nimport BasePage from '../components/BasePage';\nimport Header from '../components/Header';\nimport Noise from '../components/Noise';\nim... | typescript | edit | null | null | mit | e051f572bd24c60848cac4a27c9b7ecc42cee1d9 | AsherFoster/asherfoster.github.com,AsherFoster/asherfoster.github.com | pages/_error.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * angular2-cookie-law\n *\n * Copyright 2016-2018, @andreasonny83, All rights reserved.\n *\n * @author: @andreasonny83 <<EMAIL>>\n */\n\nimport { Inject, Injectable, PLATFORM_ID } from '@angular/core';\nimport { DOCUMENT, isPlatf... | typescript | edit | 0 | 2 | mit | d2b571178a4d25948877e4dbd253db7c4c333db4 | andreasonny83/angular2-cookie-law,andreasonny83/angular2-cookie-law,andreasonny83/angular2-cookie-law | projects/angular2-cookie-law/src/lib/angular2-cookie-law.service.ts | rejected_duplicate | Near-duplicate of sample 112921 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, Input } from '@angular/core';\nimport { LazyLoadImageDirective } from '../src/lazyload-image.directive';\n\n@Component({\n selector: 'image',\n styles: [`\n img {\n width: 100%;\n m... | typescript | edit | 0 | 0 | mit | 65799f46a000e7bca7ee4c2d3d70e58ddad241e4 | tjoskar/ng-lazyload-image,tjoskar/ng2-lazyload-image,tjoskar/ng-lazyload-image,tjoskar/ng2-lazyload-image,tjoskar/ng2-lazyload-image | example/image.component.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 | rejected_duplicate | Near-duplicate of sample 113374 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Vue from 'vue';\nimport { Component, Prop } from 'vue-property-decorator';\n\nimport { findVueParent } from '../../../utils/vue';\nimport { AppFormControlErrors } from './control-errors';\n\n@Component({})\nexport class AppFormCo... | typescript | edit | 0 | 1 | mit | ae7c485ab6c600adc5626ccb69c95f785d7f0f94 | gamejolt/frontend-lib,gamejolt/frontend-lib,gamejolt/frontend-lib,gamejolt/frontend-lib | components/form-vue/control-errors/control-error.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\n\nexport interface InputProps{\n onChange: (value: any) => void,\n label?: string\n id?: string,\n class?: string,\n value?: string\n}\n\nexport function Input(props: InputProps) {\n ... | typescript | edit | null | null | mit | c621aa9c43537074f894be0701642324424f9130 | goodbye-island/S-Store-Front-End,goodbye-island/S-Store-Front-End,goodbye-island/S-Store-Front-End | src/components/utilities/input.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 (c) 2016 The Polymer Project Authors. All rights reserved.\n * This code may only be used under the BSD style license found at\n * http://polymer.github.io/LICENSE.txt The complete set of authors may be fo... | typescript | edit | 0 | 0 | bsd-3-clause | cf8ce3751e8e42e601e312ea1129f8ab50a1ea10 | webcomponents/polyfills,webcomponents/polyfills,webcomponents/polyfills | packages/custom-elements/ts_src/AlreadyConstructedMarker.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { CountryRecord, SubdivisionsRecord } from '@maxmind/geoip2-node';\nimport { findCityByIp } from '../db/maxmind/city';\n\nimport { ipToNumber, numberToIp } from '../ip-utils';\n\nexport {\n ipToNumber,\n numberToIp,\n};\n\ntype... | typescript | edit | 0 | 7 | mit | acd4008b08d0b61c9491cbc2ead2985c53cc72fe | guyellis/ipapi,guyellis/ipapi,guyellis/ipapi | lib/api/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { parse } from 'graphql-codegen-core';\nimport { Source } from 'graphql';\nimport gqlPluck from 'graphql-tag-pluck';\n\nexport function extractDocumentStringFromCodeFile(source: Source): string | void {\n try {\n const parsed... | typescript | edit | 0 | 5 | mit | 475cffc40a7a95eb59be212c46dfc7387ea583d5 | dotansimha/graphql-code-generator,dotansimha/graphql-code-generator,dotansimha/graphql-code-generator | packages/graphql-codegen-cli/src/utils/document-finder.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { PropDef, PropsTableRowsProps } from '@storybook/components';\nimport { ArgTypes } from '@storybook/api';\nimport { ArgTypesExtractor } from '../../lib/docgen';\nimport { trimQuotes } from '../../lib/sbtypes/utils';\nimport { ex... | typescript | edit | 0 | 4 | mit | beab55946eb7570474729711e9245b8a2e31d317 | kadirahq/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook | addons/docs/src/frameworks/react/extractArgTypes.ts | accepted | null | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.