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 { settingsSelector } from 'app/dim-api/selectors';\nimport React, { useCallback, useRef } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { CompareService } from '../compare/compare.service';\nimpor...
typescript
edit
0
2
mit
2f7d3e6bedffa223a164743cb87c6281996192b1
delphiactual/DIM,DestinyItemManager/DIM,DestinyItemManager/DIM,DestinyItemManager/DIM,delphiactual/DIM,DestinyItemManager/DIM,delphiactual/DIM,delphiactual/DIM
src/app/inventory/ItemPopupTrigger.tsx
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\n/// <reference path=\"Reference.d.ts\"/>\n\nmodule Orange.Modularity {\n\n export class RegionManager {\n constructor(public container: Orange.Modularity.Container) { }\n\n public disposeRegions(root: HTMLElement) {\n...
typescript
edit
0
9
mit
abc8ca78389de43ceee01fdf15ad28f9a1cdd9d0
Infviz/Orange,Infviz/Orange,Infviz/Orange,Infviz/Orange
Orange/RegionManager.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n///<reference path='references.ts' />\r\n\r\nmodule TypeScript {\r\n export class ParseOptions {\r\n private _allowAutomaticSemicolonInsertion: boolean;\r\n private _allowModuleKeywordInExternalModuleReference: boolean;...
typescript
edit
0
1
apache-2.0
5723bfc477e73538f5a756a237680e0816b04b4c
fdecampredon/jsx-typescript-old-version,fdecampredon/jsx-typescript-old-version,mbebenita/shumway.ts,hippich/typescript,mbebenita/shumway.ts,popravich/typescript,mbebenita/shumway.ts,hippich/typescript,mbrowne/typescript-dci,fdecampredon/jsx-typescript-old-version,popravich/typescript,mbrowne/typescript-dci,hippich/typ...
src/compiler/syntax/parseOptions.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\n\nimport { MapPage } from '../map/map';\nimport { SettingsPage } from '../settings/settings';\nimport { StatsPage } from '../stats/stats';\nimport { TripsPage } from '../trips/trips';\nimport ...
typescript
edit
0
2
bsd-3-clause
0cce91fe3f27563c47fe4d16dd8dd293fabe2494
CUUATS/bikemoves-v2,CUUATS/bikemoves-v2,CUUATS/bikemoves,CUUATS/bikemoves,CUUATS/bikemoves-v2,CUUATS/bikemoves
src/pages/tabs/tabs.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport {useUserColorManager} from '@sanity/base/user-color'\nimport {Annotation, Diff, Path} from '../types'\nimport {DiffAnnotationTooltip} from './DiffAnnotationTooltip'\nimport {getAnnotationForPath, g...
typescript
edit
null
null
mit
ae902fcbf502f9edc382517af380dc374744a402
sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity
packages/@sanity/field/src/diff/annotations/DiffAnnotation.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as path from \"path\";\nimport * as fs from \"fs\";\nimport {getInfoFromFiles} from \"./../main\";\n\nexport function generateDefinitionFile() {\n const fileInfo = getInfoFromFiles([\n path.join(__dirname, \"../../sr...
typescript
edit
0
1
mit
0fce0c290eb7b88a9778eb032b64f7f4ba521d92
dsherret/type-info-ts,dsherret/type-info-ts,dsherret/ts-type-info,dsherret/ts-type-info
src/build/generateDefinitionFile.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Injectable} from '@angular/core';\nimport {KeycloakInstance, KeycloakProfile} from 'keycloak-js';\nimport {Observable} from 'rxjs/Observable';\nimport {fromPromise} from 'rxjs/observable/fromPromise';\nimport {of} from 'rxjs/obs...
typescript
edit
0
3
apache-2.0
ce78b20c89c3e4dc350ea83d9d5b9320a909f23a
SchweizerischeBundesbahnen/esta-webjs-extensions,SchweizerischeBundesbahnen/esta-webjs-extensions,SchweizerischeBundesbahnen/esta-webjs-extensions
src/auth/auth.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport * as RenderersModel from '../renderers-model';\n\nexport class FloatingRenderer<T> extends React.PureComponent<RenderersModel.FloatingRendererProps<T>, never> {\n public render() {\n ret...
typescript
edit
null
null
mit
1527dec1655120cf52796dd0b2ada6db243a55f6
woutervh-/floaty,woutervh-/floaty
src/renderers/floating-renderer.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport wpm from 'wexond-package-manager';\nimport Store from '../store';\nimport Theme from '../models/theme';\nimport Tab from '../components/Tab';\nimport React from 'react';\nimport PluginAPI from '../models/plugin-api';\n\nexport co...
typescript
edit
0
4
apache-2.0
ca02e53b036b70d9c8c9012b40eb649220f3151d
Nersent/Wexond,Nersent/Wexond
src/app/utils/plugins.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, NgModule } from '@angular/core';\n\nimport { VolunteerSignupComponent } from './VolunteerSignup/volunteer-signup.component';\n\nimport { JobSignupComponent } from './JobSignup/job-signup.component';\n\nimport { Organ...
typescript
edit
0
0
mit
27e170e75e71aa319054c41919226e36f1aeaf8d
astro8891/CommunityComms,astro8891/CommunityComms,astro8891/CommunityComms
src/app/app.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport StyletronCore from \"styletron-core\";\n\ndeclare class StyletronClient extends StyletronCore {\n constructor(els: HTMLCollection | HTMLElement[]);\n}\n\nexport default StyletronClient;\n\n```\n\nApply this change: Make argument...
typescript
edit
0
0
mit
25cc59be7b6212de1185e6e0e3ea4fe8dbdad529
rtsao/styletron
packages/styletron-client/index.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\n\nclass SettingsIndex extends React.Component<any, any>\n{\n render()\n {\n return (\n <div>\n {'Settings'}\n </div>\n );\n }\n};\n\nexport default SettingsIndex;\n```\n\nApply ...
typescript
edit
null
null
mit
c98906e0d1bd2649992a66e9f236acdfcfc9e863
harksys/HawkEye,harksys/HawkEye,harksys/HawkEye
src/View/Settings/Index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {ApiEdgeRelation} from \"./relations/ApiEdgeRelation\";\nimport {ApiEdgeQueryContext} from \"./ApiEdgeQueryContext\";\n\nexport interface ApiEdgeDefinition {\n\n name: string;\n methods: Object;\n relations: ApiEdgeRelat...
typescript
edit
0
0
mit
cf0ad8f3afc3ce66252b6964dd841d77a8d00498
ajuhos/api-core
src/ApiEdgeDefinition.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from \"react\"\nimport { createFragmentContainer, graphql } from \"react-relay\"\nimport { Responsive } from \"Utils/Responsive\"\nimport { ReadMore } from \"./ReadMore\"\n\nimport { ArtistBio_bio } from \"__generated__/Art...
typescript
edit
null
null
mit
3016c9f71c3165f53b5b6d9ec90a39b16c033893
xtina-starr/reaction,xtina-starr/reaction,artsy/reaction-force,artsy/reaction,artsy/reaction,xtina-starr/reaction,artsy/reaction,xtina-starr/reaction,artsy/reaction-force
src/Styleguide/Components/ArtistBio.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * Created by siriscac on 18/07/16.\n */\n\nimport {Component, OnInit} from '@angular/core';\n\nimport {AuthService} from \"../../services/auth\";\nimport {Task, TaskService} from \"../../services/task-service\";\n\n@Component({\n ...
typescript
edit
0
3
apache-2.0
f2cad694d8fabeab4cfac2fb55a4ad30db11c0c0
siriscac/apigee-seed-ui,siriscac/apigee-seed-ui,siriscac/apigee-seed-ui
client/app/components/tasks/tasks.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { chain, externalSchematic, Rule } from '@angular-devkit/schematics';\nimport { Schema } from '@schematics/angular/module/schema';\n\nexport function scam(options: Schema): Rule {\n return chain([\n externalSchematic('@...
typescript
edit
null
null
mit
d61c30dc437eba05c0d1e0f7d4bf9a6c47c01af5
wishtack/wishtack-steroids,wishtack/ng-steroids,wishtack/wishtack-steroids,wishtack/wishtack-steroids,wishtack/ng-steroids
packages/schematics/src/scam/index.ts
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Panzoom from '../src/panzoom'\n\nconsole.log('This is a demo version of Panzoom for testing.')\nconsole.log('It exposes a global (window.Panzoom) and should not be used in production.')\n\nwindow.Panzoom = Panzoom\n\n```\n\nApply...
typescript
edit
0
0
mit
bd299d8c233913f85ac9e66e4882314dd7b00c0e
timmywil/jquery.panzoom,timmywil/jquery.panzoom,timmywil/jquery.panzoom
demo/global-panzoom.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { RichSandwichTracker } from './RichSandwichTracker'\nimport { TextConsumer } from '../TextConsumer'\nimport { Token } from './Token'\n\ninterface Args {\n consumer?: TextConsumer,\n tokens?: Token[],\n sandwichTracker...
typescript
edit
0
2
mit
d7e19af60224112b58ace18937eb3778a4896d67
start/up,start/up
src/Parsing/Inline/TokenizerState.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Request, Router } from 'express';\n\nimport { logout, requireAuth } from 'js/server/auth';\nimport { dashboardController, hackerApplicationsController, rsvpsController, teamsController } from 'js/server/controllers/apply';\nimp...
typescript
edit
0
2
mit
913096dd1fbe70551bd77c210c6a761c484ef66d
hackcambridge/hack-cambridge-website,hackcambridge/hack-cambridge-website,hackcambridge/hack-cambridge-website,hackcambridge/hack-cambridge-website
src/js/server/routes/apply-router.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { GraphQLEnumType } from \"graphql\"\n\nexport const ARTICLE_SORTS = {\n PUBLISHED_AT_ASC: {\n value: \"published_at\",\n },\n PUBLISHED_AT_DESC: {\n value: \"-published_at\",\n },\n} as const\n\nconst ArticleSorts = {\...
typescript
edit
0
0
mit
dcc8c089aa29d4152f368d04b9b4abdd74288151
artsy/metaphysics,artsy/metaphysics,artsy/metaphysics
src/schema/v2/sorts/article_sorts.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/** Adapter to run Node.js bids-validator fullTest with minimal changes from Deno */\nimport { ValidatorOptions } from '../setup/options.ts'\nimport { FileTree } from '../types/filetree.ts'\nimport { walkFileTree } from '../schema/walk....
typescript
edit
0
2
mit
aaa467f6a101d0d8e18b28573f49cb7385988a4d
nellh/bids-validator,nellh/bids-validator,nellh/bids-validator
bids-validator/src/compat/fulltest.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as location from 'location' \n\n\nconst dispatch = (fn: any, args: any) => fn(undefined, args)\n\ndescribe('location module', () => {\n\n it('updateLocation updates window.location', () => {\n\n location.updateLocatio...
typescript
edit
0
1
mit
ada35c6149f028525799375991ea3863d54feaa0
jhdrn/myra,jhdrn/myra
test/unit/location.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { defaultEmojis } from './default_emoji';\nimport { SlackClient } from './slack-client';\n\nimport * as emojione from 'emojione';\n\nexport class EmojiService {\n emojiList: { string: string };\n defaultEmojis = defaultEmoj...
typescript
edit
0
5
mit
a5686bfebe3daa9b510e23020873ab573b3197d6
mazun/ASlack-Stream,mazun/ASlack-Stream,mazun/SlackStream,mazun/SlackStream,mazun/ASlack-Stream,mazun/SlackStream,mazun/ASlack-Stream,mazun/SlackStream
src/services/slack/emoji.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * Option model interface\n * @author Islam Attrash\n */\nexport interface IOption {\n /**\n * Text for the option\n */\n text: string;\n /**\n * The option value\n */\n value: any;\n //Any other dyna...
typescript
edit
0
0
mit
aead41f1e0c89a52218f61fc62915b2d318dc612
Attrash-Islam/infinite-autocomplete,Attrash-Islam/infinite-autocomplete
src/Interfaces/IOption.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Media } from '../Media/Media';\n\nexport interface PlaceDetail {\n\ttags: Tag[];\n\taddress: string;\n\tadmission: string;\n\tdescription: Description;\n\temail: string;\n\tduration: number;\n\topeningHours: string;\n\tphone: s...
typescript
edit
0
0
mit
02e17ea6f029292a171a830b7609747e91ed04d8
sygic-travel/js-sdk,sygic-travel/js-sdk,sygic-travel/js-sdk
src/Places/PlaceDetailed.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react'\n\nimport { Dispatcher } from '../../lib/dispatcher'\nimport { Repository } from '../../models/repository'\nimport { Branch } from '../../models/branch'\nimport { Button } from '../lib/button'\nimport { Bu...
typescript
edit
null
null
mit
adc5c92fba38472ef152668dcb707c3984774b8f
say25/desktop,kactus-io/kactus,hjobrien/desktop,kactus-io/kactus,artivilla/desktop,j-f1/forked-desktop,desktop/desktop,say25/desktop,kactus-io/kactus,desktop/desktop,artivilla/desktop,artivilla/desktop,kactus-io/kactus,j-f1/forked-desktop,shiftkey/desktop,gengjiawen/desktop,desktop/desktop,say25/desktop,gengjiawen/desk...
app/src/ui/delete-branch/index.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 * as cspell from '../index';\nimport * as path from 'path';\nimport * as fsp from 'fs-extra';\nimport * as dutchDict from 'cspell-dict-nl-nl';\nimport * as util from '../util/util';\n\nconst sampleFi...
typescript
edit
0
1
mit
95f24db73ea5d779ef931500978d731fd0eb509f
Jason3S/cspell,Jason3S/cspell,Jason3S/cspell,Jason3S/cspell,Jason3S/cspell
src/test/dutch.spec.ts
rejected_duplicate
Near-duplicate of sample 113878
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nconst StringReplacePlugin = require('string-replace-webpack-plugin');\n\nimport constant from './const';\nimport minify from './minify';\nimport banner from './banner';\n\nconst env = process.env.NODE_ENV;\nconst isProduction = env === ...
typescript
edit
0
1
mit
9d635ad519452544c38ca54a9ceb0bb4996255e7
syuilo/Misskey,armchair-philosophy/misskey,Tosuke/misskey,ha-dai/Misskey,syuilo/Misskey,Tosuke/misskey,Tosuke/misskey,Tosuke/misskey,armchair-philosophy/misskey,armchair-philosophy/misskey,Tosuke/misskey,armchair-philosophy/misskey,ha-dai/Misskey
webpack/plugins/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { IEnumerable } from \"../types\"\n\n/* eslint-disable @typescript-eslint/naming-convention */\n\n/**\n * Array backed Enumerable\n */\nexport class ArrayEnumerable<TSource> extends Array<TSource> {\n\n}\n\n/**\n * Workaround\n *...
typescript
edit
0
0
mit
849b8f22999ee734201122f919b5bdb2dd7135a9
arogozine/LinqToTypeScript,arogozine/LinqToTypeScript
src/sync/ArrayEnumerable.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Indenter } from './indenter';\n\ndescribe('Indenter', () => {\n\n describe('using tabs', () => {\n\n let indenter = new Indenter();\n\n describe(\"on single line\", () => {\n\n it(\"should indent\", ...
typescript
edit
0
1
mit
bc4af11da5c68049974441e4679eeda5a150922e
bvkatwijk/code-tools,bvkatwijk/code-tools,bvkatwijk/code-tools
src/app/classes/indent/indenter.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nconst bonjour = require(\"bonjour\")();\n\nexport default function(port = 443, httpOnly) {\n bonjour.publish({\n name: `Thorium-${require(\"os\").hostname()}`,\n type: \"thorium-http\",\n port: port,\n txt: {https: !httpOnl...
typescript
edit
0
2
apache-2.0
255a54458e025aa3085199236110f5443d7b470c
Thorium-Sim/thorium,Thorium-Sim/thorium,Thorium-Sim/thorium,Thorium-Sim/thorium
server/bootstrap/broadcast.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\ninterface FooInterface {\n foo: string,\n bar: number, //This interface should be stripped and the line numbers should still fit.\n}\n\nexport const foo = () => {\n console.log('foo');\n};\n\n\njest.mock('path');\njest.mock('pa...
typescript
edit
0
1
mit
31c90141a60cbc10258e420b19d62b583067d0d9
kulshekhar/ts-jest,kulshekhar/ts-jest
tests/hoist-errors/Hello.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nmodule Roomiverse {\n\texport class PreloadState extends Phaser.State {\n\t\tgroup : Phaser.Group\n\n\t\tpreload() {\n\t\t\tthis.group = this.add.group()\n\t\t\tthis.group.alpha = 0\n\t\t\tthis.add.tween(this.group).to({ alpha: 1 }, 100...
typescript
edit
0
1
apache-2.0
c84c794b0d7b1fc12ac193083b2c77753df9a52a
shockkolate/roomiverse,shockkolate/roomiverse,shockkolate/roomiverse
src/client/PreloadState.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nconst startTime = Date.now()\n\nimport * as React from 'react'\nimport * as ReactDOM from 'react-dom'\n\nimport { CrashApp } from './crash-app'\n\nif (!process.env.TEST_ENV) {\n /* This is the magic trigger for webpack to go compile\n ...
typescript
edit
null
null
mit
3185e27c795569effa4d6f2bf0e71b04a0d3284c
artivilla/desktop,say25/desktop,desktop/desktop,say25/desktop,hjobrien/desktop,artivilla/desktop,shiftkey/desktop,gengjiawen/desktop,hjobrien/desktop,j-f1/forked-desktop,j-f1/forked-desktop,say25/desktop,kactus-io/kactus,gengjiawen/desktop,artivilla/desktop,j-f1/forked-desktop,shiftkey/desktop,shiftkey/desktop,desktop/...
app/src/crash/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { DiffSelection } from '../../../models/diff'\nimport { ISelectionStrategy } from './selection-strategy'\nimport { DiffLineGutter } from '../diff-line-gutter'\nimport { range } from '../../../lib/range'\n\n/** apply hunk selectio...
typescript
edit
0
3
mit
2f06735fe021a52b4150f96cce58df077479a396
j-f1/forked-desktop,j-f1/forked-desktop,say25/desktop,artivilla/desktop,j-f1/forked-desktop,artivilla/desktop,kactus-io/kactus,desktop/desktop,say25/desktop,kactus-io/kactus,desktop/desktop,shiftkey/desktop,desktop/desktop,say25/desktop,artivilla/desktop,shiftkey/desktop,shiftkey/desktop,artivilla/desktop,desktop/deskt...
app/src/ui/diff/selection/range-selection-strategy.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { spawn } from 'child_process'\nimport { platform } from 'os'\n\nclass Command {\n public name: string\n public args: string[]\n}\n\n/** Opens a shell setting the working directory to fullpath. If a shell is not specified, OS d...
typescript
edit
0
4
mit
d5d530e6cd3466f7207cefd40cd03c40a134f42d
shiftkey/desktop,j-f1/forked-desktop,artivilla/desktop,shiftkey/desktop,say25/desktop,j-f1/forked-desktop,BugTesterTest/desktops,say25/desktop,shiftkey/desktop,gengjiawen/desktop,artivilla/desktop,gengjiawen/desktop,hjobrien/desktop,kactus-io/kactus,j-f1/forked-desktop,BugTesterTest/desktops,artivilla/desktop,desktop/d...
app/src/lib/open-shell.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {LogOptions} from \"dimensions/configloader\";\nimport Extension from \"dimensions/extension\";\nimport ListenServer from \"dimensions/listenserver\";\nimport Logger from \"dimensions/logger\";\nimport {requireNoCache} from \"dim...
typescript
edit
0
4
mit
50cb66150a0bddd0f00e9dd1c8c865e4df77a192
popstarfreas/Dimensions,popstarfreas/Dimensions,popstarfreas/Dimensions
node_modules/dimensions/extensions.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { MockBoot } from \"v2/DevTools/MockBoot\"\nimport { mount } from \"enzyme\"\nimport React from \"react\"\nimport { Footer, LargeFooter, SmallFooter } from \"../Footer\"\n\ndescribe(\"Footer\", () => {\n beforeAll(() => {\n w...
typescript
edit
null
null
mit
89b4caab0062f6f5ca078515becd11f675b5f3f4
artsy/force-public,joeyAghion/force,joeyAghion/force,joeyAghion/force,artsy/force,artsy/force,joeyAghion/force,artsy/force,artsy/force-public,artsy/force
src/v2/Components/__tests__/Footer.jest.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Injectable} from 'angular2/core';\nimport {Observable} from 'rxjs/Rx';\n\nimport {CardService} from '../card/card.service';\nimport {Land} from './land';\n\n@Injectable()\n\nexport class LandService {\n constructor(private card...
typescript
edit
0
1
mit
2d5f4a84231d1dfc0a3dfbb591d04edfae97806b
christianhg/magicalc,christianhg/magicalc,christianhg/magicalc
app/land/land.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport { Restangular } from 'ngx-restangular';\nimport { environment } from '../../environments/environment';\n\n@Injectable()\nexport class ClassifyService {\n\n\tconstructor(private restang...
typescript
edit
0
1
mit
8df5f4a72b105f9e5b4a4376a2ae09c3755d83d8
hres/cfg-classification-webapp,hres/cfg-classification-webapp,hres/cfg-classification-webapp
src/app/services/classify.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\nimport assert = require('assert');\nimport {Sequelize, Model, DataTypes} from 'sequelize';\nimport {Options, Attribute} from '../index';\nimport * as sinon from 'sinon';\n\n// Just a dummy\nconst sequelize: Sequelize = Object.create(S...
typescript
edit
0
1
isc
07e7f744c274edb3e426c35fbc687d5fe54f978e
felixfbecker/sequelize-decorators,felixfbecker/sequelize-decorators
src/test/typescript.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Common } from './vibrate.common';\nimport * as app from 'tns-core-modules/application';\n\nexport class Vibrate extends Common {\n constructor() {\n super();\n\n this.service = app.android.context.getSystemServ...
typescript
edit
0
3
mit
4364d83df83ac9e51f245e67d50d03094c628d27
anarchicknight/nativescript-vibrate,bazzite/nativescript-vibrate,bazzite/nativescript-vibrate,bazzite/nativescript-vibrate
src/vibrate.android.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { async, ComponentFixture, TestBed } from '@angular/core/testing';\n\nimport { TitleService } from '../shared/title.service';\nimport { MockTitleService } from '../shared/mocks/mock-title.service';\n\nimport { PageHeroComponent }...
typescript
edit
0
1
apache-2.0
e0f49a763ef0d560ee0f410d11c9d440df32be20
jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog
src/app/error/error.component.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { InlineSyntaxNode } from '../../SyntaxNodes/InlineSyntaxNode'\nimport { PlainTextNode } from '../../SyntaxNodes/PlainTextNode'\nimport { TextConsumer } from '../TextConsumer'\nimport { last } from '../CollectionHelpers'\n\nenum ...
typescript
edit
0
4
mit
9a8def7198336365590bf1a6b3c13b88b782c203
start/up,start/up
src/Parsing/Inline/GetInlineNodes.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Flex } from \"@artsy/palette\"\nimport { ArtistSeriesHeader_artistSeries } from \"__generated__/ArtistSeriesHeader_artistSeries.graphql\"\nimport OpaqueImageView from \"lib/Components/OpaqueImageView/OpaqueImageView\"\nimport R...
typescript
edit
null
null
mit
83de424dd9143cd19c2d9322e1857a37264e6e7d
artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen
src/lib/Scenes/ArtistSeries/ArtistSeriesHeader.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport const IconMap: any = {\n 'in progress' : ['pficon', 'pficon-resources-almost-full'],\n 'new' : ['fa', 'fa-arrow-down'],\n 'resolved' : ['pficon', 'pficon-resources-full']...
typescript
edit
0
0
apache-2.0
e0d470d1f4e0b87e529232b2666c92e7b02336ee
fabric8-ui/fabric8-ui,fabric8io/fabric8-ui,fabric8io/fabric8-ui,fabric8-ui/fabric8-ui,fabric8io/fabric8-ui,fabric8-ui/fabric8-ui,fabric8-ui/fabric8-ui,fabric8io/fabric8-ui,fabric8io/fabric8-ui,fabric8-ui/fabric8-ui
src/app/icon/iconmap.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { RequestPromise } from 'request-promise'\r\nimport { Properties } from './contact_property'\r\n\r\ndeclare class Contact {\r\n get(opts?: {}): RequestPromise\r\n\r\n getByEmail(email: string): RequestPromise\r\n\r\n getByEmai...
typescript
edit
0
0
mit
8cb6dd4a6be85b9d56150f194034f6bfdf2d6be8
brainflake/node-hubspot,brainflake/node-hubspot
lib/typescript/contact.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {\n DefaultIdAndTimeStamps,\n Sequelize,\n SequelizeConnectionService,\n SequelizeModelService\n} from '@foal/sequelize';\n\nexport interface BaseUser {\n isAdmin: boolean;\n}\n\nexport abstract class UserModelService<User, ...
typescript
edit
0
2
mit
2e46ef9480bfd77296c06c1851d5eb46560b7b6b
FoalTS/foal,FoalTS/foal,FoalTS/foal,FoalTS/foal
packages/authentication/src/user-model.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nfunction applyToForm(searchForm: HTMLFormElement) {\n function submitForm() {\n searchForm.submit();\n }\n const inputs = searchForm.querySelectorAll('select, input[type=\"date\"]');\n let i;\n for (i = 0; i < inputs.length; i +...
typescript
edit
0
3
mit
7cbfbf8a80d9ad3d9ad88ad54ce151048f7bda96
fin/froide,fin/froide,fin/froide,fin/froide
frontend/javascript/snippets/search.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { TodosComponent } from './todos.component';\r\nimport { TestBed, ComponentFixture, async } from \"@angular/core/testing\";\r\n\r\n\r\ndescribe('TodosComponent', function () {\r\n let component: TodosComponent;\r\n let fixt...
typescript
edit
0
1
mit
9d6cedaba79e70186a08b5722a3c6db999504b98
pawelec/todo-list,pawelec/todo-list,pawelec/todo-list,pawelec/todo-list
src/app/todos/todos.component.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Transform from '../lib/geometry/Transform';\nimport Variable from \"../lib/rx/Variable\";\nimport CanvasFile from \"../model/CanvasFile\";\nimport User from \"../model/User\";\nimport * as Auth from \"../Auth\";\n\ndeclare module...
typescript
edit
0
2
mit
afcb0aaf303f64a8558be312396dea1791133521
seanchas116/sketch-glass,seanchas116/sketch-glass,seanchas116/sketch-glass
src/viewmodel/CanvasFileViewModel.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nimport React from 'reac...
typescript
edit
null
null
mit
da14b6ac5637e8cfc74fd827df16cf1df79430c4
facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper
src/ui/components/AlternatingRows.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport environment from \"./environment\";\nimport { OpenIdConnectConfiguration } from \"aurelia-open-id-connect\";\nimport { UserManagerSettings, WebStorageStateStore } from \"oidc-client\";\n\nconst oidcConfig: OpenIdConnectConfigurat...
typescript
edit
0
0
apache-2.0
d695a94c9e03f99cd089dcd8e35d795541bd68c4
shaunluttin/openiddict-samples,openiddict/openiddict-samples
samples/ImplicitFlow/AureliaApp/src/open-id-connect-configuration.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
7130c4dfab01a2b4232224d48a6bbe32d3c774ef
GoogleChrome/web-vitals,GoogleChrome/web-vitals
src/lib/finalMetrics.ts
rejected_duplicate
Near-duplicate of sample 113785
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React, { FunctionComponent, ComponentProps } from 'react';\nimport { styled } from '@storybook/theming';\n\nimport { Brand } from './Brand';\nimport { SidebarMenu, MenuList } from './Menu';\n\nexport interface HeadingProps {\n m...
typescript
edit
null
null
mit
b1ed6cd8dabb4a8b77f1aa539eab6149e7ec7d83
storybooks/react-storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook
lib/ui/src/components/sidebar/Heading.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 Input from \"./console/Input\";\nimport styled from \"styled-components\";\nimport useAutoResize from \"../hooks/useAutoResize\";\nimport { useExecFind, useHide } from \"../app/hooks\";\n\nconst Cons...
typescript
edit
null
null
mit
fb001f4c7e908618e5b2fbc3779ca0f668677f77
ueokande/vim-vixen,ueokande/vim-vixen,ueokande/vim-vixen
src/console/components/FindPrompt.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 * as counter from './';\nimport { ICounter, ICounterAction } from '../../../models/counter';\n\n/** Module */\ndescribe('Counter Module', () => {\n\n /** Actions */\n describe('Actions', () => {\...
typescript
edit
0
1
mit
53e3c3ee6876ac67d10c3c4ce9ec01b6ad523bcb
devonzuegel/aldine,devonzuegel/aldine,devonzuegel/aldine,devonzuegel/aldine
src/app/redux/modules/counter/index.test.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { c } from 'ttag';\nimport { AlertModal, Button, Href } from '../../components';\n\ninterface Props {\n message?: string;\n open: boolean;\n onClose: () => void;\n}\n\nconst AbuseModal = ({ message, open, onClose }: Prop...
typescript
edit
null
null
mit
4bcb43375571765f93c108752f5ac626a18e6750
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
packages/components/containers/login/AbuseModal.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// --- Constants ---\n\nconst CREEP_BODY = [MOVE, WORK, CARRY, MOVE]\n\n// --- Methods ---\n\nStructureSpawn.prototype.run = function(this: StructureSpawn) {\n if (this.canCreateCreep(CREEP_BODY) === OK) { this.createCreep(CREEP_BODY) ...
typescript
edit
0
2
unlicense
b8cafd576eb91616ac54b2f9871cca0760815045
tinnvec/aints,tinnvec/aints
src/components/StructureSpawn.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Inject, Injectable, InjectionToken, Optional } from '@angular/core';\nimport { Actions, Effect } from '@ngrx/effects';\nimport { Action } from '@ngrx/store';\nimport { of } from 'rxjs';\nimport { catchError, debounceTime, filte...
typescript
edit
0
1
mit
b63c52a79dc04f9ef3305ea22ab22a1e0ccc1b20
seokju-na/geeks-diary,seokju-na/geeks-diary,seokju-na/geeks-diary
src/browser/vcs/vcs.effects.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport MongodbMemoryServer from \"mongodb-memory-server\";\n\ndescribe(\"\", () => {\n test(\"\", async (done) => {\n const mongod = new MongodbMemoryServer();\n const name = await mongod.getDbName();\n console.l...
typescript
edit
0
1
mit
3e5aeb7ac1b033d1a61b8b51f8e12aacb72e2c35
cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative
server/dbconnection.test.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport isElectron from './utils/is_electron';\n\nexport default {\n ga: 'UA-41432833-6',\n add_query_depth_limit: 3,\n max_windows: 10,\n default_language: 'en',\n languages: { en: 'English', fr: 'French' },\n query_history_depth:...
typescript
edit
0
0
mit
a7915ba895f0fc5bb13d4fb14b55066fa60f775c
imolorhe/altair,imolorhe/altair,imolorhe/altair,imolorhe/altair
src/app/config.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { captureException, flush, Handlers, withScope } from '@sentry/node';\nimport { NextApiRequest, NextApiResponse } from 'next';\n\nconst { parseRequest } = Handlers;\n\n// eslint-disable-next-line @typescript-eslint/explicit-modul...
typescript
edit
0
2
bsd-3-clause
db50399b971843e4e22073d2f8c45fbbd3e782d7
getsentry/raven-js,getsentry/raven-js,getsentry/raven-js,getsentry/raven-js
packages/nextjs/src/utils/handlers.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/* Copyright 2019 Google LLC. 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
2
apache-2.0
1caad3d14b1c5a7e55f46bf445bb1d2f398ba6ae
PAIR-code/cococo,PAIR-code/cococo,PAIR-code/cococo
src/core/feature-flags.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport { c } from 'ttag';\n\nimport {\n SidebarListItem,\n SidebarListItemButton,\n SidebarListItemContentIcon,\n SidebarListItemContent,\n LabelModal,\n useModals,\n} from 'react-components...
typescript
edit
null
null
mit
8cfbbf3dae280769d176f21e061784424a8bc008
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
applications/mail/src/app/components/sidebar/EmptyFolders.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ChildProcess } from 'child_process';\n\ntype argValues = '-cors' | '-dbPath' | '-delayTransientStatuses' | '-help' | '-inMemory' | '-optimizeDbBeforeStartup' | '-port' | '-sharedDb';\n\nexport interface InstallerConfig {\n ins...
typescript
edit
0
1
mit
a1f6150143b32762c7e823c30e6dea1622ab3289
doapp-ryanp/dynamodb-local
index.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ReturnStatement } from 'typescript';\nimport { Context } from '../contexts';\nimport { EmitResult, emit } from './';\n\nexport const emitReturnStatement = ({ expression }: ReturnStatement, context: Context): EmitResult => {\n ...
typescript
edit
0
1
mit
57ea93dce4b45e2be02ca50f69aa056a6f66c4f0
AmnisIO/typewriter,AmnisIO/typewriter,AmnisIO/typewriter
src/emitter/statements.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { TranspilerFactory } from 'stryker-api/transpile';\n// import { ConfigEditorFactory } from 'stryker-api/config';\nimport WebpackTranspiler from \"./WebpackTranspiler\";\n// import WebpackConfigEditor from \"./WebpackConfigEditor...
typescript
edit
0
0
apache-2.0
772359e0a54377592c8f4e4159cbc39a56978443
stryker-mutator/stryker,stryker-mutator/stryker,stryker-mutator/stryker
packages/stryker-webpack/src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Context } from \"../index\";\nimport { Rule } from \"../rule\";\n\nconst GOOGLE_FONT_URL_PATTERN = /https?:\\/\\/fonts.googleapis.com\\/css\\?(?!(?:[\\s\\S]+&)?display=(?:swap|fallback|optional)(?:&|$))/i;\n\n/**\n * This test ...
typescript
edit
0
2
apache-2.0
775778b0036c141a07ccc8794d319b844dc3b182
ampproject/amp-toolbox,ampproject/amp-toolbox,ampproject/amp-toolbox,ampproject/amp-toolbox
packages/linter/src/rules/FastGoogleFontsDisplay.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {ISolution} from '../solution.interface';\n\nexport class Solution implements ISolution<string, string> {\n units = {\n \"Probe\": 1,\n \"Zealot\": 2,\n \"Sentry\": 2,\n \"Stalker\": 2,\n \"HighTemplar\": 2,\n ...
typescript
edit
0
3
unlicense
01f262a375ea89ed14f00c38339bc2b824e81318
Jameskmonger/challenges
problems/additional-pylons/solution.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { RandomSeed, create } from \"random-seed\";\n\n// these generators produce different numbers\nconst rand1: RandomSeed = create(); // method 1\n\n// these generators will produce\n// the same sequence of numbers\nconst seed = 'My...
typescript
edit
0
0
mit
9b7989b0ab6824860327058786b5c32d2c458ab9
georgemarshall/DefinitelyTyped,magny/DefinitelyTyped,markogresak/DefinitelyTyped,georgemarshall/DefinitelyTyped,AgentME/DefinitelyTyped,arusakov/DefinitelyTyped,chrootsu/DefinitelyTyped,chrootsu/DefinitelyTyped,borisyankov/DefinitelyTyped,AgentME/DefinitelyTyped,zuzusik/DefinitelyTyped,zuzusik/DefinitelyTyped,AgentME/D...
types/random-seed/random-seed-tests.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {\n RoutableComponentActivate,\n RoutableComponentDetermineActivationStrategy,\n Router\n} from 'aurelia-router';\nimport { Item } from '../models/item';\nimport {\n HackerNewsApi,\n STORIES_PER_PAGE\n} from '../se...
typescript
edit
0
3
isc
7d574f43950d9157152e9ad2f7b127582935c95c
MikeBull94/aurelia-hacker-news,michaelbull/aurelia-hacker-news,michaelbull/aurelia-hacker-news,michaelbull/aurelia-hacker-news,MikeBull94/aurelia-hacker-news
src/pages/story-list.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*\n * Copyright (c) 2014-2021 Bjoern Kimminich & the OWASP Juice Shop contributors.\n * SPDX-License-Identifier: MIT\n */\n\nimport { retrieveChallengesWithCodeSnippet } from '../../routes/vulnCodeSnippet'\nimport { readFixes } from '....
typescript
edit
0
2
mit
cdd33efcb197d14ac801236ca95642b7019580ee
bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop
test/server/codingChallengeFixesSpec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nclass Vector2Mutator {\n constructor(private readonly origin: Vector2) { }\n\n add(value: Vector2| number): Vector2Mutator {\n this.apply(value, (lhs, rhs) => lhs + rhs);\n return this;\n }\n\n subtract(value: ...
typescript
edit
0
1
apache-2.0
158749dc07d677e17ea25f17c6cac1218f567508
Dia6lo/Mechanism,Dia6lo/Mechanism,Dia6lo/Mechanism
Mechanism/Structures/Vector2Mutator.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { AccountInfo } from \"@azure/msal-common\";\n\nexport interface ITokenCache {\n getAllAccounts(): Promise<AccountInf...
typescript
edit
0
0
mit
32d7af21e685e3f86b02028a771e4ca15ee53333
AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication...
lib/msal-node/src/cache/ITokenCache.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from \"react\"\nimport styled from \"styled-components\"\nimport colors from \"../assets/colors\"\nimport * as fonts from \"../assets/fonts\"\nimport { block } from \"./helpers\"\nimport { borderedInput } from \"./mixi...
typescript
edit
null
null
mit
cd59c132ca2de8557eb4b232855fe44f7b991ded
craigspaeth/reaction,artsy/reaction,craigspaeth/reaction,xtina-starr/reaction,xtina-starr/reaction,artsy/reaction-force,artsy/reaction,xtina-starr/reaction,artsy/reaction-force,xtina-starr/reaction,artsy/reaction,craigspaeth/reaction
src/components/input.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Write typescript code for the following: Move LoadingMap type to proton-shared" }, { "role": "assistant", "content": "export type SimpleMap<T> = { [key: string]: T | undefined };\n\nexport type LoadingMap = { [key: string]: boolean | undefined };\n" } ]
typescript
new_file
0
0
mit
7236a3b69951a5c4622c0f8ec071137008b628ce
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
packages/shared/lib/interfaces/utils.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nlet fs = require('fs');\nlet parser = require('./parser.js');\n\nfunction parse(filename: string, f: (tree: SyntaxNode) => void) {\n fs.readFile(filename, function (err, data) {\n if (err) {\n console.log(err);\n process.e...
typescript
edit
0
4
mit
1aa4827aec24736ce8567f68b9037a664c978ee3
guoyiteng/braid,guoyiteng/braid,cucapra/braid,cucapra/braid,guoyiteng/braid,cucapra/braid,cucapra/braid,cucapra/braid,guoyiteng/braid,guoyiteng/braid,cucapra/braid,guoyiteng/braid
src/atw.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as PropTypes from 'prop-types';\nimport * as React from 'react';\nimport MaskedInput, { MaskedInputProps } from 'react-text-mask';\n\nexport interface CustomMaskedInputProps extends MaskedInputProps {\n mask?: MaskedInputProps...
typescript
edit
null
null
mit
30c6b86853d7ebb8711524dd7b649bed180ec7ce
callemall/material-ui,oliviertassinari/material-ui,oliviertassinari/material-ui,mui-org/material-ui,dmtrKovalenko/material-ui-pickers,dmtrKovalenko/material-ui-pickers,callemall/material-ui,mui-org/material-ui,mui-org/material-ui,callemall/material-ui,mbrookes/material-ui,rscnt/material-ui,callemall/material-ui,rscnt/m...
lib/src/_shared/MaskedInput.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\n\nexport const Lock = (props: React.SVGProps<SVGSVGElement>) => (\n <svg\n width=\"10\"\n height=\"12\"\n viewBox=\"-11 -8 32 32\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n {...
typescript
edit
null
null
mit
9026712d5c399e41568207e5b2aba1ceffd765a4
ngzax/urbit,ngzax/urbit,urbit/urbit,urbit/urbit,urbit/urbit,ngzax/urbit,ngzax/urbit,ngzax/urbit,ngzax/urbit,ngzax/urbit,urbit/urbit,urbit/urbit,urbit/urbit,urbit/urbit
pkg/grid/src/components/icons/Lock.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Events = require('./Bridge');\nimport Application = require('./Application');\n\nvar services: {\n events: Events.Bridge;\n} = {\n events: new Events.Bridge()\n};\n\n//$.fn.hasAttr = function(name: string): boolean {\n// ...
typescript
edit
0
0
mit
14f9fc6e7fa71ef1554fa1899b19a02d8e033dba
chances/Animatum-Infinitas,chances/Animatum-Infinitas,chances/Animatum-Infinitas
ts/main.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as algoliasearch from 'algoliasearch'\nimport { Request, Response } from 'express'\n\nimport { FirebaseApp } from '../firebase'\nimport { AlgoliaConfig } from './config'\nimport { indexEvents } from './index-events'\nimport { i...
typescript
edit
0
2
apache-2.0
a2a195290fe60a0b2ad87e3dbebe033116e81d12
squanchy-dev/squanchy-firebase,squanchy-dev/squanchy-firebase
functions/src/search/index-contents.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport interface Article {\n id: number;\n date: string;\n alias: string;\n title: string;\n author: {\n name: string;\n info: string;\n };\n intro: string;\n content: string;\n}\n\n```\n\nApply this change: Change propert...
typescript
edit
0
0
mit
9ba452bc88fb2e12f9304532c943b3eb160381bb
KeJSaR/artezian-info-web,KeJSaR/artezian-info-web,KeJSaR/artezian-info-web,KeJSaR/artezian-info-web
src/app/interfaces/article.interface.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport user_interface = require('../../../generic_ui/scripts/ui');\nimport CoreConnector = require('../../../generic_ui/scripts/core_connector');\nimport FirefoxCoreConnector = require('./firefox_connector');\nimport FirefoxBrowserApi =...
typescript
edit
0
1
apache-2.0
da8720100626585978370a62af5ee0cdca9b6b97
IveWong/uproxy,roceys/uproxy,roceys/uproxy,dhkong88/uproxy,itplanes/uproxy,jpevarnek/uproxy,qida/uproxy,jpevarnek/uproxy,MinFu/uproxy,chinarustin/uproxy,MinFu/uproxy,chinarustin/uproxy,jpevarnek/uproxy,chinarustin/uproxy,chinarustin/uproxy,qida/uproxy,itplanes/uproxy,MinFu/uproxy,uProxy/uproxy,uProxy/uproxy,qida/uproxy...
src/firefox/data/scripts/background.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { app, BrowserWindow } from 'electron';\nimport * as electronReload from 'electron-reload';\n\n\nlet mainWindow;\n\nfunction createWindow() {\n mainWindow = new BrowserWindow({\n width: 400,\n height: 380,\n webPreferen...
typescript
edit
0
2
mit
23b320e09c23d3b993f743db9b2caa030b5f51ad
tanishi/Slackker,tanishi/Slackker,tanishi/Slackker
app/main.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\n\nconst Sidebar = (props: { width: number } = { width: 200 }) => (\n <div style={{\n width: props.width,\n flex: 1,\n overflow: 'auto',\n backgroundColor: '#666',\n }}>\...
typescript
edit
null
null
mit
9d1e69bc77fa510a57f2d9f05e0548d8ba1c98f4
paypac/node-concierge,the-concierge/concierge,paypac/node-concierge,the-concierge/concierge,paypac/node-concierge,paypac/node-concierge,the-concierge/concierge
front/react/components/sidebar/index.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 { Meta } from '@storybook/react';\nimport { Button } from './button';\n\nexport default { component: Button, title: 'Examples / Button' } as Meta;\n\nexport const WithArgs = (args: any) => <Button {......
typescript
edit
null
null
mit
90dc07219f744c76fab0df0395c23d7e672fab9f
storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,kadirahq/react-storybook
examples/react-ts/src/button.stories.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"../typings/browser.d.ts\" />\n\nnamespace AFCC {\n export function activate(selector: string) {\n $(selector).addClass(\"active\");\n }\n\n export function splashDanceParty() {\n activate(\".dance-party-he...
typescript
edit
0
2
mit
f67d34abf666f0359355a5521b93173362784856
fongandrew/wedding,fongandrew/wedding
ts/main.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
1
mit
e6fe485760a51cb0b43693f995b3262e08384272
alefragnani/vscode-language-pascal,alefragnani/vscode-language-pascal
src/extension.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\nimport * as React from 'react';\nimport { PolymerComponent } from './polymer';\nimport { omitOwnProps } from '../../../common/utils';\n\n/**\n * Re...
typescript
edit
null
null
mit
a5c786c25289f05029a82b75a4224d3a79165f35
debugworkbench/hydragon,debugworkbench/hydragon,debugworkbench/hydragon
app/src/renderer/components/paper/paper-menu.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { YveBot } from './core/bot';\n\nexport interface YveBotOptions {\n enableWaitForSleep?: boolean;\n rule?: Rule;\n}\n\nexport interface Rule {\n name?: string;\n type?: string;\n output?: string;\n message?: string;\n dela...
typescript
edit
0
0
mit
f7b25fc09f32c8585ca85fb7377b1addf8ebf69a
andersonba/yve-bot,andersonba/yve-bot,andersonba/yve-bot
src/types.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport test from 'ava'\n\nimport { memoryAppender } from './test/setup'\nimport { createNoCommandCli, createArgv } from './test/util'\n\nconst cli = createNoCommandCli('showHelp')\ntest.beforeEach(() => {\n memoryAppender.logs = []\n})...
typescript
edit
0
1
mit
b04a5580ce9379bed3bb09905541b0e66d2d1e2b
unional/clibuilder,unional/clibuilder,unional/clibuilder
src/Cli.showhelp.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\"use strict\";\n\nexport default class CookieHelper {\n\tpublic static hasItem(key: string): boolean {\n\t\treturn !!this.getItem(key);\n\t}\n\n\tpublic static getItem(key: string): string {\n\t\tconst result = document.cookie.replace(...
typescript
edit
0
4
mit
7172e88720f17711f9e2e6f3ae0f693d97848b0a
CocoonIO/cocoon-cloud-sdk,CocoonIO/cocoon-cloud-sdk,CocoonIO/cocoon-cloud-sdk
src/lib/cookie-helper.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { SandboxParameter } from './interfaces';\nimport nativeAddon from './nativeAddon';\nimport { SandboxProcess } from './sandboxProcess';\nimport { existsSync } from 'fs';\n\nif (!existsSync('/sys/fs/cgroup/memory/memory.memsw.usag...
typescript
edit
0
2
mit
e39b75ceb9f40e43e82956aea0161bf8373a8253
t123yh/simple-sandbox,t123yh/simple-sandbox
src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {ISolution} from '../solution.interface';\n\nexport class Solution implements ISolution<string, string> {\n units = {\n \"Probe\": 1,\n \"Zealot\": 2,\n \"Sentry\": 2,\n \"Stalker\": 2,\n \"HighTemplar\": 2,\n ...
typescript
edit
0
1
unlicense
3e8c9734970fae2383f8c606b3b8d2ede1238ddd
Jameskmonger/challenges
problems/additional-pylons/solution.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport default (x: any) => Object.assign({\n\t'@context': [\n\t\t'https://www.w3.org/ns/activitystreams',\n\t\t'https://w3id.org/security/v1',\n\t\t{ Hashtag: 'as:Hashtag' }\n\t]\n}, x);\n\n```\n\nApply this change: Add Activity id if m...
typescript
edit
0
4
mit
92828028db28c92d7d36324d445a69d62351df48
syuilo/Misskey,syuilo/Misskey
src/remote/activitypub/renderer/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React, { ReactElement, useEffect, useState } from 'react';\nimport { Route, Switch, Redirect } from 'react-router';\nimport { BrowserRouter } from 'react-router-dom';\nimport { LoginContext } from '../App';\nimport { getPersisted...
typescript
edit
null
null
apache-2.0
ee545fb5d3222ff0dfec38661f277fe82b82124f
dainst/idai-field-web,dainst/idai-field-web,dainst/idai-field-web
ui/src/idai_shapes/Shapes.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n(jest as any).disableAutomock();\n\nimport middleware from '../server';\n\ndescribe('retax server', () => {\n it('exposes the middleware', () => {\n expect(middleware instanceof Function).toBeTruthy();\n });\n});\n\n```\n\nApply th...
typescript
edit
0
1
mit
4e699ce9212b790db69dcbe20e5bcfe01e393d6a
retaxJS/retax
src/__tests__/server-test.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {messageJumpContext, browserSubscribeOnce} from '../communication/message-dispatch';\nimport {MessageFactory} from '../communication/message-factory';\nimport {MessageType} from '../communication/message-type';\nimport {send} fro...
typescript
edit
0
5
mit
7ce5316d1e5b816ea073e99352e30092471b5271
rangle/augury,rangle/augury,rangle/batarangle,rangle/batarangle,rangle/batarangle,rangle/batarangle,rangle/augury,rangle/augury
src/utils/ng-validate.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\n\n@Injectable()\nexport class TinymceEditorSettingsService {\n skin_url = '/assets/tinymce/skins/lightgray';\n toolbar = 'undo redo | styleselect | bold italic | link image';\n plugins = '...
typescript
edit
0
0
mit
0efcea0215dc3e858283332f9897027b628a955e
mchlbrnd/ng-tinymce,mchlbrnd/ng-tinymce
src/tinymce-editor-settings.service.ts
accepted
null
true