commit stringlengths 40 40 | old_file stringlengths 4 150 | new_file stringlengths 4 150 | old_contents stringlengths 0 3.26k | new_contents stringlengths 1 4.43k | subject stringlengths 15 501 | message stringlengths 15 4.06k | lang stringclasses 4
values | license stringclasses 13
values | repos stringlengths 5 91.5k | diff stringlengths 0 4.35k |
|---|---|---|---|---|---|---|---|---|---|---|
fb642b6b6f218284c21a63145fed3ce02e7b1e12 | desktop/src/main/local-protocol.ts | desktop/src/main/local-protocol.ts | /**
* Provides secure access to local media files by rewriting `file://`
* URLs to use this custom protocols which requires a HMAC
* (hash-based message authentication code) for each requested path.
*/
import { createHmac, randomBytes } from 'crypto'
import { Protocol } from 'electron'
export const scheme = 'loca... | /**
* Provides secure access to local media files by rewriting `file://`
* URLs to use this custom protocols which requires a HMAC
* (hash-based message authentication code) for each requested path.
*/
import { createHmac, randomBytes } from 'crypto'
import { Protocol } from 'electron'
export const scheme = 'loca... | Handle paths with spaces and other percent encoded names | fix(Desktop): Handle paths with spaces and other percent encoded names
| TypeScript | apache-2.0 | stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila | ---
+++
@@ -24,8 +24,11 @@
export const rewriteHtml = (html: string): string => {
return html.replace(
/(src=")file:\/\/(.*?)"/g,
- (_match, prefix: string, path: string) =>
- `${prefix}${scheme}://${path}?${generateHmac(path)}"`
+ (_match, prefix: string, path: string) => {
+ const pathname ... |
7d363469ab12ec68ab7e9b59a2d2de50a0d36a08 | applications/mail/src/app/components/list/ListSettings.tsx | applications/mail/src/app/components/list/ListSettings.tsx | import { memo } from 'react';
import { MailSettings } from '@proton/shared/lib/interfaces';
import { Filter, Sort } from '../../models/tools';
import FilterActions from '../toolbar/FilterActions';
import SortDropdown from '../toolbar/SortDropdown';
interface Props {
sort: Sort;
onSort: (sort: Sort) => void;
... | import { memo } from 'react';
import { MailSettings } from '@proton/shared/lib/interfaces';
import { Filter, Sort } from '../../models/tools';
import FilterActions from '../toolbar/FilterActions';
import SortDropdown from '../toolbar/SortDropdown';
interface Props {
sort: Sort;
onSort: (sort: Sort) => void;
... | Apply 1 suggestion(s) to 1 file(s) | Apply 1 suggestion(s) to 1 file(s)
| TypeScript | mit | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | ---
+++
@@ -19,7 +19,7 @@
const ListSettings = ({ sort, onSort, onFilter, filter, conversationMode, mailSettings, isSearch, labelID }: Props) => {
return (
- <div className="sticky-top upper-layer bg-norm border-bottom border-weak pl0-5 pr0-5 pt0-25 pb0-25 flex flex-wrap flex-justify-space-between">
+ ... |
0a7159390f26e7febe1469efcf004eb3272c621d | packages/editor/src/mode/ipython.ts | packages/editor/src/mode/ipython.ts | // https://github.com/nteract/nteract/issues/389
import CodeMirror from "codemirror";
import "codemirror/mode/meta";
import "codemirror/mode/python/python";
CodeMirror.defineMode(
"text/x-ipython",
(
conf: CodeMirror.EditorConfiguration,
parserConf: any
): CodeMirror.Mode<any> => {
const ipythonConf... | // https://github.com/nteract/nteract/issues/389
import CodeMirror from "codemirror";
import "codemirror/mode/meta";
import "codemirror/mode/python/python";
CodeMirror.defineMode(
"ipython",
(
conf: CodeMirror.EditorConfiguration,
parserConf: any
): CodeMirror.Mode<any> => {
const ipythonConf = Obje... | Fix syntax highlighting for Python | Fix syntax highlighting for Python
| TypeScript | bsd-3-clause | rgbkrk/nteract,rgbkrk/nteract,nteract/nteract,nteract/composition,rgbkrk/nteract,rgbkrk/nteract,nteract/nteract,rgbkrk/nteract,nteract/composition,nteract/nteract,nteract/nteract,nteract/nteract,nteract/composition | ---
+++
@@ -5,7 +5,7 @@
import "codemirror/mode/python/python";
CodeMirror.defineMode(
- "text/x-ipython",
+ "ipython",
(
conf: CodeMirror.EditorConfiguration,
parserConf: any |
0511efcfd58894c9dc0608ec8329046b45fd62ab | source/parser/parser.ts | source/parser/parser.ts | export abstract class Parser {
static workerBase = "";
public getBase(): string {
return Parser.workerBase;
}
abstract parse(file: File, options: any): Promise<any>;
} | export abstract class Parser {
static codeBase = "";
public getWorkersBase(): string {
return Parser.codeBase + "/workers/";
}
abstract parse(file: File, options: any): Promise<any>;
} | Change the way web workers are notified of code base | Change the way web workers are notified of code base
| TypeScript | apache-2.0 | Tomella/explorer-3d,Tomella/explorer-3d,Tomella/explorer-3d | ---
+++
@@ -1,8 +1,8 @@
export abstract class Parser {
- static workerBase = "";
+ static codeBase = "";
- public getBase(): string {
- return Parser.workerBase;
+ public getWorkersBase(): string {
+ return Parser.codeBase + "/workers/";
}
abstract parse(file: File, options: any): Promi... |
ceb17f09017b2c3712f056fe7e2463b722e1cd02 | app/src/app/pages/locale/locale-page.component.ts | app/src/app/pages/locale/locale-page.component.ts | import { Component, OnInit } from '@angular/core';
@Component({
selector: 'locale-page',
templateUrl: 'locale-page.component.html'
})
export class LocalePage implements OnInit {
ngOnInit() {
}
} | import { Component, OnInit } from '@angular/core';
import { LocalesService } from './../../locales/services/locales.service';
@Component({
providers: [LocalesService],
selector: 'locale-page',
templateUrl: 'locale-page.component.html'
})
export class LocalePage implements OnInit {
ngOnInit() {
}
... | Set page level locales service | Set page level locales service
| TypeScript | mit | todes1/parrot,todes1/parrot,todes1/parrot,anthonynsimon/parrot,anthonynsimon/parrot,anthonynsimon/parrot,todes1/parrot,todes1/parrot,todes1/parrot,anthonynsimon/parrot,anthonynsimon/parrot,anthonynsimon/parrot | ---
+++
@@ -1,6 +1,9 @@
import { Component, OnInit } from '@angular/core';
+import { LocalesService } from './../../locales/services/locales.service';
+
@Component({
+ providers: [LocalesService],
selector: 'locale-page',
templateUrl: 'locale-page.component.html'
}) |
4fc2303010afafcace0c5688b3de9b8ec7a47c31 | web/vtadmin/src/components/pips/BackupStatusPip.tsx | web/vtadmin/src/components/pips/BackupStatusPip.tsx | /**
* Copyright 2021 The Vitess Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | /**
* Copyright 2021 The Vitess Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | Set Backup status indicators to the correct colours :| | [vtadmin-web] Set Backup status indicators to the correct colours :|
Signed-off-by: Sara Bee <135b746314d6d3856a946b02fc025a1e267629b2@users.noreply.github.com>
| TypeScript | apache-2.0 | mahak/vitess,vitessio/vitess,vitessio/vitess,vitessio/vitess,mahak/vitess,vitessio/vitess,mahak/vitess,vitessio/vitess,mahak/vitess,mahak/vitess,vitessio/vitess,vitessio/vitess,mahak/vitess,vitessio/vitess,mahak/vitess,mahak/vitess | ---
+++
@@ -22,11 +22,11 @@
}
const STATUS_STATES: { [s in mysqlctl.BackupInfo.Status]: PipState } = {
- [mysqlctl.BackupInfo.Status.UNKNOWN]: 'danger',
- [mysqlctl.BackupInfo.Status.INCOMPLETE]: 'danger',
- [mysqlctl.BackupInfo.Status.COMPLETE]: 'danger',
+ [mysqlctl.BackupInfo.Status.UNKNOWN]: null,... |
747e8c76aa794c2f80dc5b56808714e450771336 | addon/models/product.ts | addon/models/product.ts | import DS from "ember-data";
import { computed, get } from "@ember/object";
import Brand from "./brand";
import Sku from "./sku";
import ProductField from "./product-field";
import ProductImage from "./product-image";
import ProductCategory from "./product-category";
import FieldSchema from "./field-schema";
import Sho... | import DS from "ember-data";
import Brand from "./brand";
import Sku from "./sku";
import ProductCategory from "./product-category";
import ShopProductPaymentMethod from "./shop-product-payment-method";
export default class Product extends DS.Model {
@DS.attr("string") declare name: string;
@DS.attr("string") decl... | Remove computed attributes from Product model | Remove computed attributes from Product model
| TypeScript | mit | goods/ember-goods,goods/ember-goods,goods/ember-goods | ---
+++
@@ -1,35 +1,23 @@
import DS from "ember-data";
-import { computed, get } from "@ember/object";
import Brand from "./brand";
import Sku from "./sku";
-import ProductField from "./product-field";
-import ProductImage from "./product-image";
import ProductCategory from "./product-category";
-import FieldSche... |
9d25920671877a86d2202e51dc4767ae776ef71f | src/client/app/utils/csvUploadDefaults.ts | src/client/app/utils/csvUploadDefaults.ts | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
import { ReadingsCSVUploadPreferencesItem, MetersCSVUploadPreferencesItem, TimeSortTypes } from '../types/csvUploadF... | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
import { ReadingsCSVUploadPreferencesItem, MetersCSVUploadPreferencesItem, TimeSortTypes } from '../types/csvUploadF... | Remove form default for cum reset start and end values | Remove form default for cum reset start and end values
| TypeScript | mpl-2.0 | OpenEnergyDashboard/OED,OpenEnergyDashboard/OED,OpenEnergyDashboard/OED,OpenEnergyDashboard/OED | ---
+++
@@ -11,8 +11,8 @@
createMeter: false,
cumulative: false,
cumulativeReset: false,
- cumulativeResetStart: '00:00:00',
- cumulativeResetEnd: '23:59:59.999999',
+ cumulativeResetStart: '',
+ cumulativeResetEnd: '',
duplications: '1',
gzip: false,
headerRow: false, |
e255d5e2ae5a1f434b5b38678243e57bb1d8b796 | src/Apps/Order/OrderApp.tsx | src/Apps/Order/OrderApp.tsx | import React, { SFC } from "react"
export interface OrderAppProps {
orderID: string
me: {
name: string
}
}
// @ts-ignore
export const OrderApp: SFC<OrderAppProps> = ({ orderID, me }) => (
<div>
{me.name}
{orderID}
</div>
)
| import React, { SFC } from "react"
export interface OrderAppProps {
me: {
name: string
}
}
// @ts-ignore
export const OrderApp: SFC<OrderAppProps> = ({ me }) => <div>{me.name}</div>
| Remove order ID references temporarily | Remove order ID references temporarily
| TypeScript | mit | xtina-starr/reaction,artsy/reaction-force,xtina-starr/reaction,artsy/reaction,xtina-starr/reaction,artsy/reaction,xtina-starr/reaction,artsy/reaction-force,artsy/reaction | ---
+++
@@ -1,16 +1,10 @@
import React, { SFC } from "react"
export interface OrderAppProps {
- orderID: string
me: {
name: string
}
}
// @ts-ignore
-export const OrderApp: SFC<OrderAppProps> = ({ orderID, me }) => (
- <div>
- {me.name}
- {orderID}
- </div>
-)
+export const OrderApp: SFC<O... |
61aaa1f968c88862e5b8a89eca2b23e0a0d315b0 | client/imports/song/songs.component.ts | client/imports/song/songs.component.ts | import { Component, OnInit } from '@angular/core';
import { Songs } from '../../../imports/collections';
import template from "./songs.html";
@Component({
selector: 'songs',
template
})
export class SongsComponent implements OnInit {
songs;
ngOnInit(): void {
this.songs = Songs.find({});
}
}
| import { Component, OnInit } from '@angular/core';
import { Songs } from '../../../imports/collections';
import template from "./songs.html";
@Component({
selector: 'songs',
template
})
export class SongsComponent implements OnInit {
songs;
ngOnInit(): void {
this.songs = Songs.find({}, {
sort: {... | Sort songs in reverse creation order | Sort songs in reverse creation order
| TypeScript | agpl-3.0 | singularities/song-pot,singularities/song-pot,singularities/songs-pot,singularities/songs-pot,singularities/song-pot,singularities/songs-pot | ---
+++
@@ -13,6 +13,10 @@
songs;
ngOnInit(): void {
- this.songs = Songs.find({});
+ this.songs = Songs.find({}, {
+ sort: {
+ createdAt: -1
+ }
+ });
}
} |
ab2132d8527f1049d0ced4ae7ba44cc6db3a4af7 | main.ts | main.ts | import bodyParser = require('body-parser');
import express = require('express');
import plugin = require('./core/plugin');
let app = express();
(() => {
plugin.initialize();
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({extended: false}));
app.get('/', function (req, res) {
res.send('Hello ... | import bodyParser = require('body-parser');
import express = require('express');
import db = require('./core/db');
import plugin = require('./core/plugin');
let appConfig = require('./config/app');
let app = express();
plugin.initialize();
db.initialize(appConfig.mongodb.url)
.onSuccess(() => {
let exitHandler = (... | Initialize db on start and close at exit. | Initialize db on start and close at exit.
| TypeScript | apache-2.0 | sgkim126/beyond.ts,sgkim126/beyond.ts,noraesae/beyond.ts,murmur76/beyond.ts,SollmoStudio/beyond.ts,SollmoStudio/beyond.ts,murmur76/beyond.ts,noraesae/beyond.ts | ---
+++
@@ -1,11 +1,32 @@
import bodyParser = require('body-parser');
import express = require('express');
+import db = require('./core/db');
import plugin = require('./core/plugin');
+
+let appConfig = require('./config/app');
let app = express();
-(() => {
- plugin.initialize();
+plugin.initialize();
+db.i... |
4e6af5c7941ce7778efb0d26ef6355d089b7fa88 | src/components/card/card.component.ts | src/components/card/card.component.ts | import { Component, Input, OnInit } from '@angular/core';
import { humanizeMeasureName } from '../../utils/formatters';
import { Meta } from '../../datasets/metas/types';
import { TabbedChartsMeta } from '../../datasets/metas/tabbed-charts.meta';
@Component({
selector: 'app-card',
templateUrl: './card.component.ht... | import { Component, Input, OnInit } from '@angular/core';
import { humanizeMeasureName } from '../../utils/formatters';
import { Meta } from '../../datasets/metas/types';
import { TabbedChartsMeta } from '../../datasets/metas/tabbed-charts.meta';
@Component({
selector: 'app-card',
templateUrl: './card.component.ht... | Add type to getter in CardComponent | Add type to getter in CardComponent
| TypeScript | apache-2.0 | googleinterns/guide-doge,googleinterns/guide-doge,googleinterns/guide-doge | ---
+++
@@ -13,7 +13,7 @@
humanizeMeasureName = humanizeMeasureName;
currentTabTitle: string;
- get titles() {
+ get titles(): string[] {
if (this.isTabbed()) {
return this.meta.metas.map(c => c.title);
} else { |
de4aa20a66c991429ec7bb416d899e5747744bad | src/app/hero-service.stub.ts | src/app/hero-service.stub.ts | import createSpy = jasmine.createSpy
import { HEROES_DATA } from './mockup-data'
const HEROES_SERVICE_DATA = HEROES_DATA.slice()
export class HeroServiceStub {
getHero = createSpy('getHero').and.callFake(() =>
Promise.resolve(Object.assign({}, HEROES_SERVICE_DATA[0]))
)
getHeroes = createSpy('getHeroes').a... | import createSpy = jasmine.createSpy
import { Hero } from './hero'
import { HEROES_DATA } from './mockup-data'
export class HeroServiceStub {
private heroes: Hero[]
getHero = createSpy('getHero').and.callFake(() =>
Promise.resolve(Object.assign({}, this.heroes[0]))
)
getHeroes = createSpy('getHeroes').an... | Add remove method and localize heroes data | Add remove method and localize heroes data
| TypeScript | mit | hckhanh/tour-of-heroes,hckhanh/tour-of-heroes,hckhanh/tour-of-heroes | ---
+++
@@ -1,19 +1,29 @@
import createSpy = jasmine.createSpy
+import { Hero } from './hero'
import { HEROES_DATA } from './mockup-data'
-const HEROES_SERVICE_DATA = HEROES_DATA.slice()
+export class HeroServiceStub {
+ private heroes: Hero[]
-export class HeroServiceStub {
getHero = createSpy('getHero').a... |
37b82edde653475467be8be8d5908a2fbc0e4fc4 | bliski_publikator/angular2/src/app/services/csrf.service.ts | bliski_publikator/angular2/src/app/services/csrf.service.ts | import { Injectable } from 'angular2/core';
@Injectable();
export class CsrfService{
constructor() {}
getToken() {
return this.parseCookie()['csrftoken'];
}
private parseCookie() {
return document.cookie
.split(';')
.map(t => t.split('='))
.reduce((v, t) => { v[t[0]] = (t[1] || ''); return v }, {})... | import { Injectable } from 'angular2/core';
@Injectable();
export class CsrfService{
constructor() {}
getToken() {
let cookies = this.parseCookie();
let r = cookies['csrftoken'];
return r;
}
private parseCookie() {
var cookies = {}
document.cookie
.split(';')
.map(t => t.trim())
.map(t => t.s... | Fix cookies parser for Google Chrome | Fix cookies parser for Google Chrome
| TypeScript | mit | watchdogpolska/bliski_publikator,watchdogpolska/bliski_publikator,watchdogpolska/bliski_publikator,watchdogpolska/bliski_publikator | ---
+++
@@ -6,13 +6,18 @@
constructor() {}
getToken() {
- return this.parseCookie()['csrftoken'];
+ let cookies = this.parseCookie();
+ let r = cookies['csrftoken'];
+ return r;
}
private parseCookie() {
- return document.cookie
+ var cookies = {}
+ document.cookie
.split(';')
+ .map(t => t.t... |
318ffe56e12106e277c172bd52dcc921b8cca768 | new-client/src/components/ImageModal.tsx | new-client/src/components/ImageModal.tsx | import React, { FunctionComponent } from 'react';
import { ModalHeader, ModalCloseButton, ModalBody, ModalFooter, Image, Text, Flex, Link } from '@chakra-ui/react';
interface ImageModalProps {
src: string;
}
const ImageModal: FunctionComponent<ImageModalProps> = ({ src }: ImageModalProps) => {
return (
<>
... | import React, { FunctionComponent, useRef } from 'react';
import { ModalHeader, ModalCloseButton, ModalBody, ModalFooter, Image, Text, Flex, Link } from '@chakra-ui/react';
import useResizeObserver from 'use-resize-observer';
interface ImageModalProps {
src: string;
}
const ImageModal: FunctionComponent<ImageModalP... | Fix image size in preview | Fix image size in preview
| TypeScript | apache-2.0 | ilkkao/mas,ilkkao/mas,ilkkao/mas,ilkkao/mas | ---
+++
@@ -1,18 +1,22 @@
-import React, { FunctionComponent } from 'react';
+import React, { FunctionComponent, useRef } from 'react';
import { ModalHeader, ModalCloseButton, ModalBody, ModalFooter, Image, Text, Flex, Link } from '@chakra-ui/react';
+import useResizeObserver from 'use-resize-observer';
interface... |
4445ba93ee7cba5271fc4889286911f3e42bcaa3 | src/VueJsTypeScriptAspNetCoreSample/src/components/Hello.ts | src/VueJsTypeScriptAspNetCoreSample/src/components/Hello.ts | import * as Vue from "vue";
import Component from "vue-class-component";
@Component({
name: "Hello",
})
export default class Hello extends Vue {
msg: string = "Welcome to Your Vue.js App";
// created (): void {
// axios
// .get('/api/hello')
// .then((res) => {
// this.msg = res.dat... | import * as Vue from "vue";
import Component from "vue-class-component";
import axios from "axios";
@Component({
name: "Hello",
})
export default class Hello extends Vue {
msg: string = "Welcome to Your Vue.js App";
created (): void {
axios
.get("/api/hello")
.then((res) => {
this.m... | Add AJAX call sample using axios | Add AJAX call sample using axios
| TypeScript | mit | devkimchi/Vue.js-with-ASP.NET-Core-Sample,devkimchi/Vue.js-with-ASP.NET-Core-Sample,devkimchi/Vue.js-with-ASP.NET-Core-Sample,devkimchi/Vue.js-with-ASP.NET-Core-Sample | ---
+++
@@ -1,17 +1,18 @@
import * as Vue from "vue";
import Component from "vue-class-component";
+import axios from "axios";
@Component({
name: "Hello",
})
export default class Hello extends Vue {
msg: string = "Welcome to Your Vue.js App";
-// created (): void {
-// axios
-// .get('/api/... |
4134926195e4cf6b109c72daf698da4d4f298411 | src/app/annotator/annotator.component.ts | src/app/annotator/annotator.component.ts | import { Component } from '@angular/core';
import { Router } from '@angular/router';
@Component({
selector: 'annotator',
templateUrl: './annotator.component.html',
styleUrls: ['./annotator.component.css'],
})
export class AnnotatorComponent {
constructor(
public router: Router,
) { }
actionBack(): vo... | import { Component } from '@angular/core';
import { Router } from '@angular/router';
import { AlveoService } from '../alveo/shared/alveo.service';
@Component({
selector: 'annotator',
templateUrl: './annotator.component.html',
styleUrls: ['./annotator.component.css'],
})
export class AnnotatorComponent {
cons... | Call audioData from Alveo module (for now) | Call audioData from Alveo module (for now)
| TypeScript | bsd-3-clause | Alveo/alveo-transcriber,Alveo/alveo-transcriber,Alveo/alveo-transcriber,Alveo/alveo-transcriber | ---
+++
@@ -1,5 +1,7 @@
import { Component } from '@angular/core';
import { Router } from '@angular/router';
+
+import { AlveoService } from '../alveo/shared/alveo.service';
@Component({
selector: 'annotator',
@@ -10,6 +12,7 @@
export class AnnotatorComponent {
constructor(
public router: Router,
+ ... |
d72dae9b8baf0fd211a71c83720cdec57488aaa8 | src/lib/Components/Bidding/Components/BackButton.tsx | src/lib/Components/Bidding/Components/BackButton.tsx | import React from "react"
import { TouchableWithoutFeedback, ViewProperties } from "react-native"
import NavigatorIOS from "react-native-navigator-ios"
import { Image } from "../Elements/Image"
import { theme } from "../Elements/Theme"
interface ContainerWithBackButtonProps extends ViewProperties {
navigator: Naviga... | import React from "react"
import { TouchableWithoutFeedback, ViewProperties } from "react-native"
import NavigatorIOS from "react-native-navigator-ios"
import { Image } from "../Elements/Image"
interface ContainerWithBackButtonProps extends ViewProperties {
navigator: NavigatorIOS
}
export class BackButton extends ... | Adjust bid registration back button spacing | Adjust bid registration back button spacing
| TypeScript | mit | artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen | ---
+++
@@ -2,7 +2,6 @@
import { TouchableWithoutFeedback, ViewProperties } from "react-native"
import NavigatorIOS from "react-native-navigator-ios"
import { Image } from "../Elements/Image"
-import { theme } from "../Elements/Theme"
interface ContainerWithBackButtonProps extends ViewProperties {
navigator:... |
d4a0f2027e9bd72ac9de9dcefd04b4f0bd319f9d | src/helpers/readers.ts | src/helpers/readers.ts | import * as fs from 'fs';
import * as jsyaml from 'js-yaml';
export function readTypeIDs(path): Object {
return jsyaml.load(fs.readFileSync(path).toString());
}
export function readToken(path): string {
return fs.readFileSync(path).toString();
}
| import * as fs from 'fs';
import * as jsyaml from 'js-yaml';
export function readTypeIDs(path): Object {
return jsyaml.load(fs.readFileSync(path).toString());
}
export function readToken(path): string {
return fs.readFileSync(path).toString().trim();
}
| Fix crash when token.txt contains a newline | Fix crash when token.txt contains a newline
| TypeScript | mit | Ionaru/MarketBot | ---
+++
@@ -6,5 +6,5 @@
}
export function readToken(path): string {
- return fs.readFileSync(path).toString();
+ return fs.readFileSync(path).toString().trim();
} |
ed291560d73a15b8bb802db11c44358b73f898e6 | src/containers/TopContainer.ts | src/containers/TopContainer.ts | import * as _ from 'lodash';
import {connect} from 'react-redux';
import Top from '../components/Top';
import {closeAllTask, openAllTask, sync, updateCommonConfig} from '../actions/index';
import RootState from '../states/index';
import CommonConfig from '../models/CommonConfig';
const mapStateToProps = (state: RootSt... | import * as _ from 'lodash';
import {connect} from 'react-redux';
import Top from '../components/Top';
import {closeAllTask, openAllTask, sync, updateCommonConfig, updateTasks} from '../actions/index';
import RootState from '../states/index';
import CommonConfig from '../models/CommonConfig';
import {TaskUpdateParamete... | Fix not working drag and drop | :skull: Fix not working drag and drop
| TypeScript | mit | tadashi-aikawa/owlora,tadashi-aikawa/owlora,tadashi-aikawa/owlora | ---
+++
@@ -1,9 +1,10 @@
import * as _ from 'lodash';
import {connect} from 'react-redux';
import Top from '../components/Top';
-import {closeAllTask, openAllTask, sync, updateCommonConfig} from '../actions/index';
+import {closeAllTask, openAllTask, sync, updateCommonConfig, updateTasks} from '../actions/index';
... |
9eccb86b6f34abd145ebb9b107787953a8bc0adb | lib/utils/calculate-grid-points.ts | lib/utils/calculate-grid-points.ts | import lonlat from '@conveyal/lonlat'
import {PROJECTION_ZOOM_LEVEL} from 'lib/constants'
export default function calculateGridPoints(
bounds: CL.Bounds,
zoom = PROJECTION_ZOOM_LEVEL
): number {
const topLeft = lonlat.toPixel([bounds.west, bounds.north], zoom)
const bottomRight = lonlat.toPixel([bounds.east, ... | import lonlat from '@conveyal/lonlat'
import {PROJECTION_ZOOM_LEVEL} from 'lib/constants'
/**
* The grid extent is computed from the points. If the cell number for the right edge of the grid is rounded
* down, some points could fall outside the grid. `lonlat.toPixel` and `lonlat.toPixel` naturally truncate down, wh... | Add 1 to width and height | Add 1 to width and height
Match what's being done on the backend
| TypeScript | mit | conveyal/analysis-ui,conveyal/analysis-ui,conveyal/analysis-ui | ---
+++
@@ -2,13 +2,19 @@
import {PROJECTION_ZOOM_LEVEL} from 'lib/constants'
+/**
+ * The grid extent is computed from the points. If the cell number for the right edge of the grid is rounded
+ * down, some points could fall outside the grid. `lonlat.toPixel` and `lonlat.toPixel` naturally truncate down, which ... |
562fdbba10ad9af369a099704fc5187cffca7eee | lib/nativescript-cli.ts | lib/nativescript-cli.ts | ///<reference path=".d.ts"/>
"use strict";
// this call must be first to avoid requiring c++ dependencies
require("./common/verify-node-version").verifyNodeVersion(require("../package.json").engines.node);
require("./bootstrap");
import * as fiber from "fibers";
import Future = require("fibers/future");
import * as s... | ///<reference path=".d.ts"/>
"use strict";
let node = require("../package.json").engines.node;
// this call must be first to avoid requiring c++ dependencies
require("./common/verify-node-version").verifyNodeVersion(node, "NativeScript", "2.2.0");
require("./bootstrap");
import * as fiber from "fibers";
import Future... | Add warning for Node.js 0.10.x deprecation | Add warning for Node.js 0.10.x deprecation
Warn users that support from version 0.10.x will be removed in version 2.2.0.
| TypeScript | apache-2.0 | NativeScript/nativescript-cli,tsvetie/nativescript-cli,NativeScript/nativescript-cli,NativeScript/nativescript-cli,NathanaelA/nativescript-cli,NathanaelA/nativescript-cli,NathanaelA/nativescript-cli,tsvetie/nativescript-cli,NativeScript/nativescript-cli,tsvetie/nativescript-cli,tsvetie/nativescript-cli,NathanaelA/nativ... | ---
+++
@@ -1,8 +1,9 @@
///<reference path=".d.ts"/>
"use strict";
+let node = require("../package.json").engines.node;
// this call must be first to avoid requiring c++ dependencies
-require("./common/verify-node-version").verifyNodeVersion(require("../package.json").engines.node);
+require("./common/verify-nod... |
ebb54db9419301b1af9522db77f46da8f2a0b05a | client/src/app/services/status.service.ts | client/src/app/services/status.service.ts | /*
* Copyright (c) 2017 Bonnie Schulkin. All Rights Reserved.
*
* This file is part of BoxCharter.
*
* BoxCharter is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, either version 3 of the License, ... | /*
* Copyright (c) 2017 Bonnie Schulkin. All Rights Reserved.
*
* This file is part of BoxCharter.
*
* BoxCharter is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, either version 3 of the License, ... | Add TODOs to make status display more elegant and useful. | Add TODOs to make status display more elegant and useful.
| TypeScript | agpl-3.0 | flyrightsister/boxcharter,flyrightsister/boxcharter | ---
+++
@@ -31,6 +31,9 @@
constructor() { }
setStatus(statusResponse: Status): void {
+ // TODO: scroll up to where status is, so user sees it.
+ // TODO: animate status
+ // TODO: make status disappear after (10) seconds
this.status = statusResponse;
}
|
4fde183a6ae218751829d85d3b0bc2f0f7977034 | test/helpers/fast-test-setup.ts | test/helpers/fast-test-setup.ts | import { ComponentFixture, getTestBed, TestBed } from '@angular/core/testing';
/**
* Sources from:
* https://github.com/topnotch48/ng-bullet-workspace
* https://blog.angularindepth.com/angular-unit-testing-performance-34363b7345ba
*
* @example
* describe('Testing Something.', () => {
* fastTestSetup();
... | import { ipcRenderer } from 'electron';
import { ComponentFixture, getTestBed, TestBed } from '@angular/core/testing';
/**
* Sources from:
* https://github.com/topnotch48/ng-bullet-workspace
* https://blog.angularindepth.com/angular-unit-testing-performance-34363b7345ba
*
* @example
* describe('Testing Someth... | Fix memory leak problem during testing | Fix memory leak problem during testing
| TypeScript | mit | seokju-na/geeks-diary,seokju-na/geeks-diary,seokju-na/geeks-diary | ---
+++
@@ -1,3 +1,4 @@
+import { ipcRenderer } from 'electron';
import { ComponentFixture, getTestBed, TestBed } from '@angular/core/testing';
@@ -34,6 +35,13 @@
afterEach(() => {
testBedApi._activeFixtures.forEach((fixture: ComponentFixture<any>) => fixture.destroy());
testBedApi._instan... |
9ac8ec74c03ba712d02834ded97ef07be2d99a63 | MarkdownConverter/src/System/Tasks/PuppeteerTask.ts | MarkdownConverter/src/System/Tasks/PuppeteerTask.ts | import FileSystem = require("fs-extra");
import Puppeteer = require("puppeteer-core");
import { CancellationToken, Progress } from "vscode";
import { IConvertedFile } from "../../Conversion/IConvertedFile";
import { MarkdownConverterExtension } from "../../MarkdownConverterExtension";
import { ChromiumNotFoundException... | import FileSystem = require("fs-extra");
import Puppeteer = require("puppeteer-core");
import { CancellationToken, CancellationTokenSource, Progress } from "vscode";
import { IConvertedFile } from "../../Conversion/IConvertedFile";
import { MarkdownConverterExtension } from "../../MarkdownConverterExtension";
import { ... | Add default parameters for the puppeteer-task | Add default parameters for the puppeteer-task
| TypeScript | mit | manuth/MarkdownConverter,manuth/MarkdownConverter,manuth/MarkdownConverter | ---
+++
@@ -1,6 +1,6 @@
import FileSystem = require("fs-extra");
import Puppeteer = require("puppeteer-core");
-import { CancellationToken, Progress } from "vscode";
+import { CancellationToken, CancellationTokenSource, Progress } from "vscode";
import { IConvertedFile } from "../../Conversion/IConvertedFile";
im... |
72e04790fd4fb060444eb13cbbd5e72906f703ba | src/main.d.ts | src/main.d.ts | import type { PluginCreator } from 'postcss';
export const cssDeclarationSorter: PluginCreator<{
/**
Provide the name of one of the built-in sort orders or a comparison function that is passed to `Array.sort`.
@default 'alphabetical'
*/
order?: SortOrder | SortFunction | undefined;
/**
To prevent break... | import type { PluginCreator } from 'postcss';
declare const cssDeclarationSorter: PluginCreator<{
/**
Provide the name of one of the built-in sort orders or a comparison function that is passed to `Array.sort`.
@default 'alphabetical'
*/
order?: SortOrder | SortFunction | undefined;
/**
To prevent brea... | Use CommonJS export in types | Use CommonJS export in types
| TypeScript | isc | Siilwyn/css-declaration-sorter | ---
+++
@@ -1,6 +1,6 @@
import type { PluginCreator } from 'postcss';
-export const cssDeclarationSorter: PluginCreator<{
+declare const cssDeclarationSorter: PluginCreator<{
/**
Provide the name of one of the built-in sort orders or a comparison function that is passed to `Array.sort`.
@@ -16,6 +16,8 @@
... |
d6fa0136b4e6aeafa8f244e04cde8e5d2afa7a9b | src/utils/get-platform.ts | src/utils/get-platform.ts | let platform: any;
// return the current platform if there is one,
// otherwise open up a new platform
export function getPlatform(appId: string, appCode: string) {
if (platform) return platform;
platform = new H.service.Platform({
'app_id': appId,
'app_code': appCode,
});
return plat... | let platform: any;
// return the current platform if there is one,
// otherwise open up a new platform
export function getPlatform(platformOptions: H.service.Platform.Options) {
if (platform) return platform;
platform = new H.service.Platform(platformOptions);
return platform;
}
// make the getPlatform ... | Support all platform options in getPlatform utility. | Support all platform options in getPlatform utility.
| TypeScript | mit | Josh-ES/react-here-maps,Josh-ES/react-here-maps | ---
+++
@@ -2,13 +2,10 @@
// return the current platform if there is one,
// otherwise open up a new platform
-export function getPlatform(appId: string, appCode: string) {
+export function getPlatform(platformOptions: H.service.Platform.Options) {
if (platform) return platform;
- platform = new H.servi... |
076796396253a9605ee05ab01657dc21002f1ffa | src/client/app/fassung/fassung-routing.module.ts | src/client/app/fassung/fassung-routing.module.ts | /**
* Created by Reto Baumgartner (rfbaumgartner) on 05.07.17.
*/
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { FassungComponent } from './fassung.component';
@NgModule({
imports: [
RouterModule.forChild([
{ path: 'drucke/:konvolut/:fassung', componen... | /**
* Created by Reto Baumgartner (rfbaumgartner) on 05.07.17.
*/
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { FassungComponent } from './fassung.component';
@NgModule({
imports: [
RouterModule.forChild([
{ path: 'drucke/:konvolut/:fassung', componen... | Remove route to special collection `typoskripte-sammlungen` | Remove route to special collection `typoskripte-sammlungen`
The collection `typoskripte-sammlungen` serves only as a ordering element in the navigation
| TypeScript | mit | nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website | ---
+++
@@ -12,7 +12,6 @@
{ path: 'drucke/:konvolut/:fassung', component: FassungComponent },
{ path: 'manuskripte/:konvolut/:fassung', component: FassungComponent },
{ path: 'notizbuecher/:konvolut/:fassung', component: FassungComponent },
- { path: 'typoskripte/typoskripte-sammlungen/:konv... |
fc3f03a161c08e4e0946671305183f1c608f7765 | services/QuillLMS/client/app/modules/apollo.ts | services/QuillLMS/client/app/modules/apollo.ts | // import ApolloClient from "apollo-boost";
// const client = new ApolloClient({});
import { ApolloClient } from 'apollo-client';
import { HttpLink } from 'apollo-link-http';
import { InMemoryCache } from 'apollo-cache-inmemory';
import { ApolloLink, concat } from 'apollo-link';
const httpLink = new HttpLink({ uri: ... | // import ApolloClient from "apollo-boost";
// const client = new ApolloClient({});
import { ApolloClient } from 'apollo-client';
import { HttpLink } from 'apollo-link-http';
import { InMemoryCache } from 'apollo-cache-inmemory';
import { ApolloLink, concat } from 'apollo-link';
const httpLink = new HttpLink({ uri: ... | Fix property 'content' does not exist on type 'HTMLElement' | quill-lms: Fix property 'content' does not exist on type 'HTMLElement'
document.getElementsByName() returns a HTMLElement object, which does not have a property
'content'. [0]
TypeScript is typesafe, so where returned object HTMLElement does not have a property,
any attempted access to it will be invalid. Reported by... | TypeScript | agpl-3.0 | empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core | ---
+++
@@ -13,7 +13,7 @@
// add the authorization to the headers
operation.setContext({
headers: {
- 'x-csrf-token': document.getElementsByName('csrf-token')[0] ? document.getElementsByName('csrf-token')[0].content : 0
+ 'x-csrf-token': document.getElementsByName('csrf-token')[0] ? document.getE... |
c67ccf97af318e15b92c50827e256ba9180f3d99 | typescript/collections/hash-map.ts | typescript/collections/hash-map.ts | // We will use an array as if it isn't associative
export class HashMap<T> {
private _arr: T[] = [];
set(key: string, val: T): void {
const hash = this._hash(key);
this._arr[hash] = val;
}
get(key: string): T | undefined {
const hash = this._hash(key);
return this._arr[hash];
}
// This i... | // We will use an array as if it isn't associative
export class HashMap<T> {
private _arr: T[] = [];
set(key: string, val: T): void {
const hash = this._hash(key);
this._arr[hash] = val;
}
get(key: string): T | undefined {
const hash = this._hash(key);
return this._arr[hash];
}
// This i... | Fix typo in TS hash map comment | Fix typo in TS hash map comment
| TypeScript | mit | hAWKdv/DataStructures,hAWKdv/DataStructures | ---
+++
@@ -13,7 +13,7 @@
return this._arr[hash];
}
- // This is not a proper has function! It may result in collisions easily
+ // This is not a proper hash function! It may result in collisions easily
private _hash(key: string): number {
return new Array(key.length)
.fill(0) |
c8959e289b8a12f6c5f5f35b672a65f977c3cc09 | myFirstApps/src/app/pipe/getImage.pipe.spec.ts | myFirstApps/src/app/pipe/getImage.pipe.spec.ts | import { GetImagePipe } from './getImage.pipe'
describe('Testing for GetImagePipe', ()=>{
let pipe: GetImagePipe;
beforeEach(()=>{
pipe = new GetImagePipe();
});
it('providing noImagePath if no value of imagePath', ()=>{
expect(pipe.transform('', 'http://localhost/noImage.jp... | Add unit test for GetImage pipe | Add unit test for GetImage pipe
| TypeScript | mit | fedorax/angular-basic,fedorax/angular-basic,fedorax/angular-basic | ---
+++
@@ -0,0 +1,25 @@
+import { GetImagePipe } from './getImage.pipe'
+
+describe('Testing for GetImagePipe', ()=>{
+ let pipe: GetImagePipe;
+
+ beforeEach(()=>{
+ pipe = new GetImagePipe();
+ });
+
+ it('providing noImagePath if no value of imagePath', ()=>{
+ expect(pipe.transform('', ... | |
19c6bc0fe056a2430b0530d16bbf980a14b7b65b | test/e2e/console/console-eval-global_test.ts | test/e2e/console/console-eval-global_test.ts | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assert} from 'chai';
import {describe, it} from 'mocha';
import {click, getBrowserAndPages, pasteText, step} from '../../shared/helper.js';
impor... | Add e2e test for global evaluation in Console | Add e2e test for global evaluation in Console
This patch ports the following layout test:
https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/web_tests/http/tests/devtools/console/console-eval-global.js;drc=78e2bc9c2def358a0745878ffc66ce85ee5221d8
CL removing the upstream test:
https://chromi... | TypeScript | bsd-3-clause | ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend | ---
+++
@@ -0,0 +1,58 @@
+// Copyright 2020 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+import {assert} from 'chai';
+import {describe, it} from 'mocha';
+
+import {click, getBrowserAndPages, pasteText, step} f... | |
3c2c992a1b785ab9b6cfa3ae0d9f082683c291c0 | src/System/Documents/Assets/PictureSource.ts | src/System/Documents/Assets/PictureSource.ts | import { dirname, extname } from "path";
import { Document } from "../Document";
import { Asset } from "./Asset";
import { AssetURLType } from "./AssetURLType";
import { InsertionType } from "./InsertionType";
/**
* Represents the source of a picture.
*/
export class PictureSource extends Asset
{
/**
* The ... | Add a class for representing the source-value of a picture | Add a class for representing the source-value of a picture
| TypeScript | mit | manuth/MarkdownConverter,manuth/MarkdownConverter,manuth/MarkdownConverter | ---
+++
@@ -0,0 +1,113 @@
+import { dirname, extname } from "path";
+import { Document } from "../Document";
+import { Asset } from "./Asset";
+import { AssetURLType } from "./AssetURLType";
+import { InsertionType } from "./InsertionType";
+
+/**
+ * Represents the source of a picture.
+ */
+export class PictureSour... | |
92806a890fa78a8e9ad455d5bedf14cb9bd7259f | src/Parsing/Outline/ParseDescriptionList.ts | src/Parsing/Outline/ParseDescriptionList.ts | import { TextConsumer } from '../TextConsumer'
import { UnorderedListNode } from '../../SyntaxNodes/UnorderedListNode'
import { UnorderedListItemNode } from '../../SyntaxNodes/UnorderedListItemNode'
import { DescriptionListNode } from '../../SyntaxNodes/DescriptionListNode'
import { DescriptionTermNode } from '../../Sy... | Add description list parser file | Add description list parser file
| TypeScript | mit | start/up,start/up | ---
+++
@@ -0,0 +1,96 @@
+import { TextConsumer } from '../TextConsumer'
+import { UnorderedListNode } from '../../SyntaxNodes/UnorderedListNode'
+import { UnorderedListItemNode } from '../../SyntaxNodes/UnorderedListItemNode'
+import { DescriptionListNode } from '../../SyntaxNodes/DescriptionListNode'
+import { Desc... | |
57888a3a478e3cb0d0cb10c778f794df99c0a1af | minimist/minimist-tests.ts | minimist/minimist-tests.ts | /// <reference path="minimist.d.ts" />
import minimist = require('minimist');
import Opts = minimist.Opts;
var num: string;
var str: string;
var strArr: string[];
var args: string[];
var obj: minimist.ParsedArgs;
var opts: Opts;
var arg: any;
opts.string = str;
opts.string = strArr;
opts.boolean = true;
opts.boolean... | /// <reference path="minimist.d.ts" />
import minimist = require('minimist');
import Opts = minimist.Opts;
var num: string;
var str: string;
var strArr: string[];
var args: string[];
var obj: minimist.ParsedArgs;
var opts: Opts;
var arg: any;
opts.string = str;
opts.string = strArr;
opts.boolean = true;
opts.boolean... | Add test for alias with single string value | Add test for alias with single string value
| TypeScript | mit | slavomirvojacek/DefinitelyTyped,onecentlin/DefinitelyTyped,jasonswearingen/DefinitelyTyped,chrootsu/DefinitelyTyped,gandjustas/DefinitelyTyped,wilfrem/DefinitelyTyped,johan-gorter/DefinitelyTyped,musicist288/DefinitelyTyped,Zzzen/DefinitelyTyped,magny/DefinitelyTyped,johan-gorter/DefinitelyTyped,benliddicott/Definitely... | ---
+++
@@ -19,6 +19,9 @@
opts.alias = {
foo: strArr
};
+opts.alias = {
+ foo: str
+};
opts.default = {
foo: str
};
@@ -29,7 +32,7 @@
if(/xyz/.test(arg)){
return true;
}
-
+
return false;
};
opts.stopEarly = true; |
f42b6590f984423ef98d2187712788e77ea05dc5 | saleor/static/dashboard-next/storybook/Decorator.tsx | saleor/static/dashboard-next/storybook/Decorator.tsx | import * as React from "react";
import AppActionContext from "../components/AppLayout/AppActionContext";
import { Provider as DateProvider } from "../components/Date/DateContext";
import { FormProvider } from "../components/Form";
import { MessageManager } from "../components/messages";
import ThemeProvider from "../c... | import * as React from "react";
import { Provider as DateProvider } from "../components/Date/DateContext";
import { FormProvider } from "../components/Form";
import { MessageManager } from "../components/messages";
import ThemeProvider from "../components/Theme";
import { TimezoneProvider } from "../components/Timezon... | Revert changes made to decorator | Revert changes made to decorator
| TypeScript | bsd-3-clause | maferelo/saleor,mociepka/saleor,mociepka/saleor,maferelo/saleor,mociepka/saleor,maferelo/saleor | ---
+++
@@ -1,46 +1,28 @@
import * as React from "react";
-import AppActionContext from "../components/AppLayout/AppActionContext";
import { Provider as DateProvider } from "../components/Date/DateContext";
import { FormProvider } from "../components/Form";
import { MessageManager } from "../components/messages... |
605baa5cb44469c9bd6d2caa70b6b9812d500224 | tether-drop/tether-drop-tests.ts | tether-drop/tether-drop-tests.ts | ///<reference path="../tether/tether.d.ts" />
///<reference path="tether-drop.d.ts" />
import 'tether-drop';
var yellowBox = document.querySelector(".yellow");
var greenBox = document.querySelector(".green");
var d = new Drop({
position: "bottom left",
openOn: "click",
constrainToWindow: true,
constr... | ///<reference path="../tether/tether.d.ts" />
///<reference path="tether-drop.d.ts" />
import 'tether-drop';
var yellowBox = document.querySelector(".yellow");
var greenBox = document.querySelector(".green");
var d = new Drop({
position: "bottom left",
openOn: "click",
constrainToWindow: true,
constr... | Fix test containing 'drop' property | [tether-drop] Fix test containing 'drop' property | TypeScript | mit | psnider/DefinitelyTyped,AgentME/DefinitelyTyped,GiedriusGrabauskas/DefinitelyTyped,abner/DefinitelyTyped,martinduparc/DefinitelyTyped,abner/DefinitelyTyped,slavomirvojacek/adbrain-typescript-definitions,slavomirvojacek/DefinitelyTyped,daptiv/DefinitelyTyped,slavomirvojacek/adbrain-typescript-definitions,Penryn/Definite... | ---
+++
@@ -24,7 +24,7 @@
d.toggle();
d.position();
d.destroy();
-d.drop.appendChild(document.createElement("div"));
+d.content.appendChild(document.createElement("div"));
d.tether.position();
d.on("open", () => false); |
b3078f265ee65c0538d80e11173a327625817523 | tests/cases/fourslash/quickInfoForShorthandProperty.ts | tests/cases/fourslash/quickInfoForShorthandProperty.ts | /// <reference path='fourslash.ts' />
//// var name1 = undefined, id1 = undefined;
//// var /*obj1*/obj1 = {/*name1*/name1, /*id1*/id1};
//// var name2 = "Hello";
//// var id2 = 10000;
//// var /*obj2*/obj2 = {/*name2*/name2, /*id2*/id2};
goTo.marker("obj1");
verify.quickInfoIs("(var) obj1: {\n name1: an... | Add a test for quick-info | Add a test for quick-info
| TypeScript | apache-2.0 | matthewjh/TypeScript,pcan/TypeScript,suto/TypeScript,RReverser/TypeScript,mihailik/TypeScript,ionux/TypeScript,fabioparra/TypeScript,zmaruo/TypeScript,webhost/TypeScript,mihailik/TypeScript,enginekit/TypeScript,moander/TypeScript,SaschaNaz/TypeScript,mszczepaniak/TypeScript,enginekit/TypeScript,thr0w/Thr0wScript,ionux/... | ---
+++
@@ -0,0 +1,21 @@
+/// <reference path='fourslash.ts' />
+
+//// var name1 = undefined, id1 = undefined;
+//// var /*obj1*/obj1 = {/*name1*/name1, /*id1*/id1};
+//// var name2 = "Hello";
+//// var id2 = 10000;
+//// var /*obj2*/obj2 = {/*name2*/name2, /*id2*/id2};
+
+goTo.marker("obj1");
+verify.quickInfoIs("... | |
37503183f6f27bcde42d8bf38f89ff6a8085a3c8 | src/Test/Ast/CurlyBracketed.ts | src/Test/Ast/CurlyBracketed.ts | import { expect } from 'chai'
import Up from '../../index'
import { insideDocumentAndParagraph } from './Helpers'
import { PlainTextNode } from '../../SyntaxNodes/PlainTextNode'
import { EmphasisNode } from '../../SyntaxNodes/EmphasisNode'
import { CurlyBracketedNode } from '../../SyntaxNodes/CurlyBracketedNode'
desc... | Add 4 failing curly bracket tests | Add 4 failing curly bracket tests
| TypeScript | mit | start/up,start/up | ---
+++
@@ -0,0 +1,74 @@
+import { expect } from 'chai'
+import Up from '../../index'
+import { insideDocumentAndParagraph } from './Helpers'
+import { PlainTextNode } from '../../SyntaxNodes/PlainTextNode'
+import { EmphasisNode } from '../../SyntaxNodes/EmphasisNode'
+import { CurlyBracketedNode } from '../../Synta... | |
49d5a6d36e8c28175a3135121d0016d1e0cce70c | packages/apollo-cache-inmemory/src/__tests__/queryKeyMaker.ts | packages/apollo-cache-inmemory/src/__tests__/queryKeyMaker.ts | import { QueryKeyMaker } from '../queryKeyMaker';
import { CacheKeyNode } from '../optimism';
import gql from 'graphql-tag';
import { DocumentNode } from 'graphql';
describe('QueryKeyMaker', () => {
const cacheKeyRoot = new CacheKeyNode();
const queryKeyMaker = new QueryKeyMaker(cacheKeyRoot);
it('should work',... | Add a basic test of the QueryKeyMaker. | Add a basic test of the QueryKeyMaker.
| TypeScript | mit | apollostack/apollo-client,apollographql/apollo-client,apollostack/apollo-client,apollostack/apollo-client,apollographql/apollo-client | ---
+++
@@ -0,0 +1,51 @@
+import { QueryKeyMaker } from '../queryKeyMaker';
+import { CacheKeyNode } from '../optimism';
+import gql from 'graphql-tag';
+import { DocumentNode } from 'graphql';
+
+describe('QueryKeyMaker', () => {
+ const cacheKeyRoot = new CacheKeyNode();
+ const queryKeyMaker = new QueryKeyMaker(... | |
9ad742dc1398944bb3e470b51ecb4d0a38438152 | app/test/helpers/menus/available-spellchecker-languages-helper.ts | app/test/helpers/menus/available-spellchecker-languages-helper.ts | /**
* The list is based on Electron v17.0.1
*
* Call to session.availableSpellCheckerLanguages
* https://www.electronjs.org/docs/latest/api/session#sesavailablespellcheckerlanguages-readonly
*/
export function getAvailableSpellcheckerLanguages(): string[] {
return [
'af',
'bg',
'ca',
'... | Add available spellchecker languages as test helper | Add available spellchecker languages as test helper
| TypeScript | mit | shiftkey/desktop,desktop/desktop,shiftkey/desktop,desktop/desktop,desktop/desktop,shiftkey/desktop,desktop/desktop,shiftkey/desktop | ---
+++
@@ -0,0 +1,65 @@
+/**
+ * The list is based on Electron v17.0.1
+ *
+ * Call to session.availableSpellCheckerLanguages
+ * https://www.electronjs.org/docs/latest/api/session#sesavailablespellcheckerlanguages-readonly
+ */
+export function getAvailableSpellcheckerLanguages(): string[] {
+ return [
+ 'af',
... | |
4ac76f85e88326ccdc59963bb0d9f70533ea90eb | src/app/NavigatorShare.ts | src/app/NavigatorShare.ts | /**
* Parameters for {@link Navigator#share}
*/
interface NavigatorShareParams {
/**
* The title to share
*/
title?: string;
/**
* The text to share
*/
text?: string;
/**
* The url to share
*/
url?: string;
}
interface Navigator {
share(opts: NavigatorShareParams): Promise<any>;
}
| Add interface file for `navigator.share` | chore: Add interface file for `navigator.share`
| TypeScript | mit | Chan4077/angular-rss-reader,Chan4077/angular-rss-reader,Chan4077/angular-rss-reader | ---
+++
@@ -0,0 +1,20 @@
+/**
+ * Parameters for {@link Navigator#share}
+ */
+interface NavigatorShareParams {
+ /**
+ * The title to share
+ */
+ title?: string;
+ /**
+ * The text to share
+ */
+ text?: string;
+ /**
+ * The url to share
+ */
+ url?: string;
+}
+interface Navigator {
+ share(opts: NavigatorS... | |
1e3887f0ba70ccd28923ce79cc6d3b4a78a877a5 | typescript/graphs/algorithms/kahns-topological-sort.ts | typescript/graphs/algorithms/kahns-topological-sort.ts | import { Graph } from '../graph';
// This doesn't check if the graph is acyclic!
function topologicalSort<T>(g: Graph<T>): T[] {
g = g.copy();
const sorted: T[] = [];
const nonIncoming = g.vertices.filter((v: T) => !g.edges.find(([_, dest]) => dest === v));
while (nonIncoming.length) {
const v = nonIncomi... | Add TS Kahn's topological sorting | Add TS Kahn's topological sorting
| TypeScript | mit | hAWKdv/DataStructures,hAWKdv/DataStructures | ---
+++
@@ -0,0 +1,58 @@
+import { Graph } from '../graph';
+
+// This doesn't check if the graph is acyclic!
+function topologicalSort<T>(g: Graph<T>): T[] {
+ g = g.copy();
+ const sorted: T[] = [];
+ const nonIncoming = g.vertices.filter((v: T) => !g.edges.find(([_, dest]) => dest === v));
+
+ while (nonIncomi... | |
64587eb951c26b146aa50f877ad14732ba8b46fe | config/app_test_default.ts | config/app_test_default.ts | // A real test configuration
// @todo: consider reading from env vars
export const server = {
passportSecret: "something",
loggerLevel: "debug",
http: {
active: true,
port: 1080
},
recording_url_base: "http://test.site/recording"
};
export const s3 = {
publicKey: "minio",
privateKey: "miniostora... | Make sure config got added. | Make sure config got added.
| TypeScript | agpl-3.0 | TheCacophonyProject/Full_Noise | ---
+++
@@ -0,0 +1,41 @@
+// A real test configuration
+// @todo: consider reading from env vars
+
+export const server = {
+ passportSecret: "something",
+ loggerLevel: "debug",
+ http: {
+ active: true,
+ port: 1080
+ },
+ recording_url_base: "http://test.site/recording"
+};
+
+export const s3 = {
+ pub... | |
25e361311fbb0e2690942fc77c3511dba7234f74 | src/__tests__/hooks.spec.ts | src/__tests__/hooks.spec.ts | import flatpickr from "index";
import { Options } from "types/options";
import { Instance } from "types/instance";
flatpickr.defaultConfig.animate = false;
jest.useFakeTimers();
const createInstance = (config?: Options): Instance => {
return flatpickr(
document.createElement("input"),
config as Options
)... | Add unit test for onOpen | Add unit test for onOpen
| TypeScript | mit | chmln/flatpickr,chmln/flatpickr | ---
+++
@@ -0,0 +1,27 @@
+import flatpickr from "index";
+import { Options } from "types/options";
+import { Instance } from "types/instance";
+
+flatpickr.defaultConfig.animate = false;
+
+jest.useFakeTimers();
+
+const createInstance = (config?: Options): Instance => {
+ return flatpickr(
+ document.createEleme... | |
2ae6dd908592fe2abae4bdeb25306bc5b35e65e4 | src/app/card/card.component.spec.ts | src/app/card/card.component.spec.ts | import { By } from '@angular/platform-browser';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { DebugElement } from '@angular/core';
import { CardComponent } from './card.component';
describe('Card Component', () => {
let component: CardComponent;
let fixture: ComponentFixture<C... | Add unit test for Card component | Add unit test for Card component
| TypeScript | mit | joeattardi/scrum-deck,joeattardi/scrum-deck,joeattardi/scrum-deck | ---
+++
@@ -0,0 +1,57 @@
+import { By } from '@angular/platform-browser';
+import { async, ComponentFixture, TestBed } from '@angular/core/testing';
+import { DebugElement } from '@angular/core';
+
+import { CardComponent } from './card.component';
+
+describe('Card Component', () => {
+ let component: CardComponent... | |
1359fdd379fc81fa1cac5e257514ea58a589e810 | src/directives/summarization/summarization.directive.spec.ts | src/directives/summarization/summarization.directive.spec.ts | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { SummarizationDirective } from './summarization.directive';
import { Component, ViewChild } from '@angular/core';
import { SummarizationModule } from './summarization.module';
import { LineChartComponent } from '../../components/line-chart/l... | Add tests for summarization directive | Add tests for summarization directive
| TypeScript | apache-2.0 | googleinterns/guide-doge,googleinterns/guide-doge,googleinterns/guide-doge | ---
+++
@@ -0,0 +1,93 @@
+import { ComponentFixture, TestBed } from '@angular/core/testing';
+import { SummarizationDirective } from './summarization.directive';
+import { Component, ViewChild } from '@angular/core';
+import { SummarizationModule } from './summarization.module';
+import { LineChartComponent } from '.... | |
492bc6ab6a75bfd5c4d03134c16dfbe9b8de25a2 | ui/src/logs/components/SeverityConfig.tsx | ui/src/logs/components/SeverityConfig.tsx | import React, {SFC} from 'react'
import uuid from 'uuid'
import ColorDropdown, {Color} from 'src/logs/components/ColorDropdown'
interface SeverityItem {
severity: string
default: Color
override?: Color
}
interface Props {
configs: SeverityItem[]
onReset: () => void
onChangeColor: (severity: string) => (ov... | Make severity configuration its own component | Make severity configuration its own component
| TypeScript | mit | nooproblem/influxdb,influxdb/influxdb,influxdb/influxdb,li-ang/influxdb,nooproblem/influxdb,influxdata/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,influxdata/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,li-ang/influxdb,influxdb/influxdb,... | ---
+++
@@ -0,0 +1,43 @@
+import React, {SFC} from 'react'
+import uuid from 'uuid'
+import ColorDropdown, {Color} from 'src/logs/components/ColorDropdown'
+
+interface SeverityItem {
+ severity: string
+ default: Color
+ override?: Color
+}
+
+interface Props {
+ configs: SeverityItem[]
+ onReset: () => void
+ ... | |
a4e06b2b95a06ebd022b303c34172563ed75088d | src/client/app/components/admin/UsersManagementComponent.tsx | src/client/app/components/admin/UsersManagementComponent.tsx | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
import * as React from 'react';
import { Link } from 'react-router';
import { Button } from 'reactstrap';
export ... | Add buttons to access different user management actions | Add buttons to access different user management actions
| TypeScript | mpl-2.0 | OpenEnergyDashboard/OED,OpenEnergyDashboard/OED,OpenEnergyDashboard/OED,OpenEnergyDashboard/OED | ---
+++
@@ -0,0 +1,21 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+import * as React from 'react';
+import { Link } from 'react-router';
+import { Bu... | |
6282c9fb5e2097c86f44ee67da872423df1c1d5c | tests/cases/fourslash/completionsImport_noSemicolons.ts | tests/cases/fourslash/completionsImport_noSemicolons.ts | /// <reference path="fourslash.ts" />
// @Filename: /a.ts
////export function foo() {}
// @Filename: /b.ts
////const x = 0
////const y = 1
////const z = fo/**/
verify.applyCodeActionFromCompletion("", {
name: "foo",
source: "/a",
description: `Import 'foo' from module "./a"`,
newFileContent: `import { foo } ... | Add test for semicolon detection in auto-import | Add test for semicolon detection in auto-import
| TypeScript | apache-2.0 | alexeagle/TypeScript,kpreisser/TypeScript,microsoft/TypeScript,minestarks/TypeScript,kitsonk/TypeScript,weswigham/TypeScript,nojvek/TypeScript,microsoft/TypeScript,RyanCavanaugh/TypeScript,SaschaNaz/TypeScript,weswigham/TypeScript,microsoft/TypeScript,kpreisser/TypeScript,nojvek/TypeScript,alexeagle/TypeScript,SaschaNa... | ---
+++
@@ -0,0 +1,20 @@
+/// <reference path="fourslash.ts" />
+
+// @Filename: /a.ts
+////export function foo() {}
+
+// @Filename: /b.ts
+////const x = 0
+////const y = 1
+////const z = fo/**/
+
+verify.applyCodeActionFromCompletion("", {
+ name: "foo",
+ source: "/a",
+ description: `Import 'foo' from module "... | |
33bec79debe90f47559065138fc387c1422e0958 | desktop/core/src/desktop/js/webComponents/ExecutionAnalysis.ts | desktop/core/src/desktop/js/webComponents/ExecutionAnalysis.ts | // Licensed to Cloudera, Inc. under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Cloudera, Inc. licenses this file
// to you under the Apache License, Version 2.0 (the
// 'License'); you may not use this f... | Add an execution-analysis web component for logs and errors | [frontend] Add an execution-analysis web component for logs and errors
| TypeScript | apache-2.0 | cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue | ---
+++
@@ -0,0 +1,28 @@
+// Licensed to Cloudera, Inc. under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. Cloudera, Inc. licenses this file
+// to you under the Apache License, Version 2.0 (the
+// '... | |
99be2f72f8b027098f7fdb5a245e57e6541fd2be | src/app/components/inline-assessment/share-rating.component.ts | src/app/components/inline-assessment/share-rating.component.ts | import {Component, Input} from '@angular/core'
@Component({
selector: 'share-rating',
template:`
<div class="panel">
<div class="panel-body" style="padding-top: 0;">
<h3>¡Compártelo!</h3>
<p>{{texto}}</p>
<button class="btn" (click)="vote()"><img src="asset... | Add rating panel to app | Add rating panel to app
| TypeScript | agpl-3.0 | llopv/jetpad-ic,llopv/jetpad-ic,llopv/jetpad-ic | ---
+++
@@ -0,0 +1,19 @@
+import {Component, Input} from '@angular/core'
+
+@Component({
+ selector: 'share-rating',
+ template:`
+ <div class="panel">
+ <div class="panel-body" style="padding-top: 0;">
+ <h3>¡Compártelo!</h3>
+ <p>{{texto}}</p>
+ <button class="... | |
b46862560627ece8701871cce5b15e918ab02de0 | migrations/20160713080742-change-message-text-limit.ts | migrations/20160713080742-change-message-text-limit.ts | import * as Sequelize from "sequelize"
const migration = {
up: async (queryInterface: Sequelize.QueryInterface) => {
await queryInterface.changeColumn("messages", "text", {
type: Sequelize.TEXT
})
},
down: async (queryInterface: Sequelize.QueryInterface) => {
await queryInterface.removeColumn("... | Change column type VARCHAR(255) -> TEXT | Change column type VARCHAR(255) -> TEXT
| TypeScript | mit | sketchglass/respass,sketchglass/respass,sketchglass/respass,sketchglass/respass | ---
+++
@@ -0,0 +1,15 @@
+import * as Sequelize from "sequelize"
+
+const migration = {
+ up: async (queryInterface: Sequelize.QueryInterface) => {
+ await queryInterface.changeColumn("messages", "text", {
+ type: Sequelize.TEXT
+ })
+ },
+ down: async (queryInterface: Sequelize.QueryInterface) => {
+ ... | |
dc4d81a6bda11013ce1e1752a53a8cf00606adfd | knockout.rx/knockout.rx.d.ts | knockout.rx/knockout.rx.d.ts | // Type definitions for knockout.rx 1.0
// Project: https://github.com/Igorbek/knockout.rx
// Definitions by: Igor Oleinikov <https://github.com/Igorbek>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../knockout/knockout.d.ts"/>
/// <reference path="../rx.js/rx.d.ts"/>
interface ... | // Type definitions for knockout.rx 1.0
// Project: https://github.com/Igorbek/knockout.rx
// Definitions by: Igor Oleinikov <https://github.com/Igorbek>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../knockout/knockout.d.ts"/>
interface KnockoutSubscribableFunctions<T> {
toObs... | Remove useless reference to RxJS | Remove useless reference to RxJS
This reference is not needed and is now causing problem because the
definitelyTyped for RxJS is now part of the RxJS package directly. The
Nuget package will needed to be changed also.
| TypeScript | mit | davidpricedev/DefinitelyTyped,musically-ut/DefinitelyTyped,minodisk/DefinitelyTyped,daptiv/DefinitelyTyped,samdark/DefinitelyTyped,syuilo/DefinitelyTyped,evandrewry/DefinitelyTyped,mrk21/DefinitelyTyped,mattanja/DefinitelyTyped,duncanmak/DefinitelyTyped,wkrueger/DefinitelyTyped,dariajung/DefinitelyTyped,miguelmq/Defini... | ---
+++
@@ -4,7 +4,6 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../knockout/knockout.d.ts"/>
-/// <reference path="../rx.js/rx.d.ts"/>
interface KnockoutSubscribableFunctions<T> {
toObservable(event?: string): Rx.Observable<T>; |
4190cf945c2a031574d9229a15ff196a0a1b51ad | src/Test/Ast/InputInstructionNode.ts | src/Test/Ast/InputInstructionNode.ts | /*
import { expect } from 'chai'
import Up from '../../index'
import { insideDocumentAndParagraph } from './Helpers'
import { PlainTextNode } from '../../SyntaxNodes/PlainTextNode'
import { InputInstructionNode } from '../../SyntaxNodes/InputInstructionNode'
describe('Text surrounded by curly brackets', () => {
it... | Add commented-out input instruction test file | Add commented-out input instruction test file
| TypeScript | mit | start/up,start/up | ---
+++
@@ -0,0 +1,90 @@
+/*
+
+import { expect } from 'chai'
+import Up from '../../index'
+import { insideDocumentAndParagraph } from './Helpers'
+import { PlainTextNode } from '../../SyntaxNodes/PlainTextNode'
+import { InputInstructionNode } from '../../SyntaxNodes/InputInstructionNode'
+
+
+describe('Text surrou... | |
12c8bf1bff18e4a3f2163af1aa74823a02932350 | types/vscode/vscode-tests.ts | types/vscode/vscode-tests.ts | import * as vscode from 'vscode';
vscode.commands.registerCommand('extension.helloWorld', () => {
vscode.window.showInformationMessage('Hello World!');
});
vscode.languages.registerCompletionItemProvider('markdown', {
provideCompletionItems() {
return [];
}
});
const nodeDependenciesProvider: vscode.TreeDataPro... | import * as vscode from 'vscode';
vscode.commands.registerCommand('extension.helloWorld', () => {
vscode.window.showInformationMessage('Hello World!');
});
vscode.languages.registerCompletionItemProvider('markdown', {
provideCompletionItems() {
return [];
}
});
| Drop tree API since it changed a lot | Drop tree API since it changed a lot
| TypeScript | mit | georgemarshall/DefinitelyTyped,markogresak/DefinitelyTyped,dsebastien/DefinitelyTyped,georgemarshall/DefinitelyTyped,borisyankov/DefinitelyTyped,borisyankov/DefinitelyTyped,mcliment/DefinitelyTyped,georgemarshall/DefinitelyTyped,dsebastien/DefinitelyTyped,georgemarshall/DefinitelyTyped | ---
+++
@@ -9,16 +9,3 @@
return [];
}
});
-
-const nodeDependenciesProvider: vscode.TreeDataProvider<string> = {
- getChildren() {
- return [];
- },
- getTreeItem(el: string) {
- return {
- id: el
- };
- }
-};
-
-vscode.window.registerTreeDataProvider('nodeDependencies', nodeDependenciesProvider); |
1d97e56c76d3554f215f768be56558c2b79a60b4 | lib/Element.ts | lib/Element.ts | export function repaint(element: HTMLElement): void {
// tslint:disable-next-line
element.offsetHeight;
}
export function srcAttribute(wrapper: HTMLElement, image: HTMLImageElement): string {
let attribute: string | null = wrapper.getAttribute('data-src');
if (attribute !== null) {
return attr... | export function repaint(element: HTMLElement): void {
// tslint:disable-next-line
element.offsetHeight;
}
export function srcAttribute(wrapper: HTMLElement, image: HTMLImageElement): string {
let attribute: string | null = wrapper.getAttribute('data-src');
if (attribute !== null) {
return attr... | Fix issue with removing classes | Fix issue with removing classes
| TypeScript | unknown | MikeBull94/zoom.ts,michaelbull/zoom.ts,MikeBull94/zoom.ts,michaelbull/zoom.ts,MikeBull94/zoom.ts | ---
+++
@@ -22,7 +22,13 @@
}
export function removeClass(element: HTMLElement, name: string): void {
- let classes: string[] = element.className.split(' ');
- classes.splice(classes.indexOf(name), 1);
- element.className = classes.join(' ');
+ let existing: string = element.className;
+
+ if (exist... |
0e47602adbb783cb83926476d098c1db8a26a196 | test/user-list-item-spec.ts | test/user-list-item-spec.ts | import { expect } from './support';
import { createMockStore } from './lib/mock-store';
import { Store } from '../src/lib/store';
import { User, Profile } from '../src/lib/models/api-shapes';
import { UserViewModel } from '../src/user-list-item';
const storeData: { [key: string]: User } = {
jamesFranco: {
id: 'j... | Write a test for the UserViewModel. | Write a test for the UserViewModel.
| TypeScript | bsd-3-clause | paulcbetts/trickline,paulcbetts/trickline,paulcbetts/trickline,paulcbetts/trickline | ---
+++
@@ -0,0 +1,32 @@
+import { expect } from './support';
+import { createMockStore } from './lib/mock-store';
+import { Store } from '../src/lib/store';
+import { User, Profile } from '../src/lib/models/api-shapes';
+import { UserViewModel } from '../src/user-list-item';
+
+const storeData: { [key: string]: User... | |
7c09785614350ebc490e35608e9b6627ed106777 | src/app/core/services/control-api/control-api.service.ts | src/app/core/services/control-api/control-api.service.ts | import { Injectable } from '@angular/core';
import { HttpHeaders, HttpClient } from '@angular/common/http';
import { Constants } from 'src/app/common/constants';
@Injectable({
providedIn: 'root'
})
// NOTE: Mongoose's CONTROL API is used for controlling execution of the Mongoose app itself.
// Example: running wit... | Fix issue with adding IP addresses to the UI. | Fix issue with adding IP addresses to the UI.
| TypeScript | mit | emc-mongoose/console,emc-mongoose/console,emc-mongoose/console | ---
+++
@@ -0,0 +1,45 @@
+import { Injectable } from '@angular/core';
+import { HttpHeaders, HttpClient } from '@angular/common/http';
+import { Constants } from 'src/app/common/constants';
+
+@Injectable({
+ providedIn: 'root'
+})
+
+// NOTE: Mongoose's CONTROL API is used for controlling execution of the Mongoose ... | |
173294924093d969147df85c5215fa7fcfb41506 | src/mocks/providers/mock-camera.ts | src/mocks/providers/mock-camera.ts | export class MockCamera {
DestinationType = { 'FILE_URI': 'FILE_URI' };
EncodingType = { 'JPEG': 'JPEG' };
MediaType = { 'PICTURE': 'PICTURE' };
getPicture(options) {
return new Promise((resolve, reject) => {
let categories = ['abstract', 'animals', 'business', 'cats', 'city', 'food', 'nightlife', 'f... | Create mock camera that can be used for browser testing. | Create mock camera that can be used for browser testing.
| TypeScript | mit | IMSmobile/app,IMSmobile/app,IMSmobile/app,IMSmobile/app | ---
+++
@@ -0,0 +1,15 @@
+export class MockCamera {
+ DestinationType = { 'FILE_URI': 'FILE_URI' };
+ EncodingType = { 'JPEG': 'JPEG' };
+ MediaType = { 'PICTURE': 'PICTURE' };
+
+ getPicture(options) {
+ return new Promise((resolve, reject) => {
+ let categories = ['abstract', 'animals', 'business', 'cat... | |
60a0d17758f7d355e4b096081c670f4b7c88216d | src/helpers/propTypes.spec.ts | src/helpers/propTypes.spec.ts | import * as propTypes from './propTypes';
describe('propTypes', () => {
describe('wildcard', () => {
it('does not return an error, no matter what you throw at it', () => {
const tests = [null, undefined, 1, 'foo', { foo: 'foo' }, ['foo']];
expect.assertions(tests.length);
... | Add unit tests for propTypes helper | Add unit tests for propTypes helper
| TypeScript | mit | springload/react-accessible-accordion,springload/react-accessible-accordion,springload/react-accessible-accordion | ---
+++
@@ -0,0 +1,15 @@
+import * as propTypes from './propTypes';
+
+describe('propTypes', () => {
+ describe('wildcard', () => {
+ it('does not return an error, no matter what you throw at it', () => {
+ const tests = [null, undefined, 1, 'foo', { foo: 'foo' }, ['foo']];
+ expect.as... | |
1b9f4dead40cfe087022c82ebc6106f94381044a | src/Test/Ast/OrderedList.ts | src/Test/Ast/OrderedList.ts | /// <reference path="../../../typings/mocha/mocha.d.ts" />
/// <reference path="../../../typings/chai/chai.d.ts" />
import { expect } from 'chai'
import * as Up from '../../index'
import { SyntaxNode } from '../../SyntaxNodes/SyntaxNode'
import { LinkNode } from '../../SyntaxNodes/LinkNode'
import { DocumentNode } fro... | Add failing ordered list test | Add failing ordered list test
| TypeScript | mit | start/up,start/up | ---
+++
@@ -0,0 +1,50 @@
+/// <reference path="../../../typings/mocha/mocha.d.ts" />
+/// <reference path="../../../typings/chai/chai.d.ts" />
+
+import { expect } from 'chai'
+import * as Up from '../../index'
+import { SyntaxNode } from '../../SyntaxNodes/SyntaxNode'
+import { LinkNode } from '../../SyntaxNodes/Lin... | |
5f178511caeb96021fa64676f560b658a8340d8c | types/p-cancelable/index.d.ts | types/p-cancelable/index.d.ts | // Type definitions for p-cancelable 0.3
// Project: https://github.com/sindresorhus/p-cancelable#readme
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = PCancelable;
declare const PCancelable: PCancelableConstructor;
inte... | // Type definitions for p-cancelable 0.5
// Project: https://github.com/sindresorhus/p-cancelable#readme
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = PCancelable;
declare const PCancelable: PCancelableConstructor;
inte... | Make p-cancellable types compatible with 0.5 | Make p-cancellable types compatible with 0.5
- Append `onCancel` instead of prepending (https://github.com/sindresorhus/p-cancelable/commit/8e3aaec245492f3a38b5d4f74e9861cf3f334616)
- Rename `PCancelable.canceled` to `PCancelable.isCanceled` (https://github.com/sindresorhus/p-cancelable/commit/433d25c8fcf08acd127f024... | TypeScript | mit | mcliment/DefinitelyTyped,dsebastien/DefinitelyTyped,AgentME/DefinitelyTyped,AgentME/DefinitelyTyped,borisyankov/DefinitelyTyped,markogresak/DefinitelyTyped,georgemarshall/DefinitelyTyped,magny/DefinitelyTyped,borisyankov/DefinitelyTyped,AgentME/DefinitelyTyped,AgentME/DefinitelyTyped,magny/DefinitelyTyped,dsebastien/De... | ---
+++
@@ -1,4 +1,4 @@
-// Type definitions for p-cancelable 0.3
+// Type definitions for p-cancelable 0.5
// Project: https://github.com/sindresorhus/p-cancelable#readme
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -11,2... |
2d7b039bb4227c3566012df8b08829bf529c2b72 | src/handlers/InProgress.ts | src/handlers/InProgress.ts | import {Frame, ResponseContext, ResponseModel} from "../definitions/Handler";
import {Attributes, RequestContext} from "../definitions/SkillContext";
import * as Frames from "../definitions/FrameDirectory";
let entry = (attr: Attributes, ctx: RequestContext) => {
let model = new ResponseModel();
model.speec... | Add new handler for test. | Add new handler for test.
| TypeScript | agpl-3.0 | deegles/cookietime,deegles/cookietime | ---
+++
@@ -0,0 +1,29 @@
+import {Frame, ResponseContext, ResponseModel} from "../definitions/Handler";
+import {Attributes, RequestContext} from "../definitions/SkillContext";
+
+import * as Frames from "../definitions/FrameDirectory";
+
+let entry = (attr: Attributes, ctx: RequestContext) => {
+
+ let model = ne... | |
278ddaa56566e133cb1e12440c859d955512e9e3 | app/src/lib/git/diff-index.ts | app/src/lib/git/diff-index.ts | import { git } from './core'
import { Repository } from '../../models/repository'
export async function getChangedPathsInIndex(repository: Repository): Promise<string[]> {
const result = await git([ 'diff-index', '--cached', '--name-only', '-z', 'HEAD' ], repository.path, 'getChangedPathsInIndex')
return result.s... | Add a function for getting a list of files that have changed in the index | Add a function for getting a list of files that have changed in the index
| TypeScript | mit | j-f1/forked-desktop,kactus-io/kactus,hjobrien/desktop,artivilla/desktop,kactus-io/kactus,gengjiawen/desktop,desktop/desktop,desktop/desktop,gengjiawen/desktop,shiftkey/desktop,desktop/desktop,j-f1/forked-desktop,kactus-io/kactus,desktop/desktop,hjobrien/desktop,say25/desktop,artivilla/desktop,j-f1/forked-desktop,hjobri... | ---
+++
@@ -0,0 +1,10 @@
+import { git } from './core'
+import { Repository } from '../../models/repository'
+
+export async function getChangedPathsInIndex(repository: Repository): Promise<string[]> {
+ const result = await git([ 'diff-index', '--cached', '--name-only', '-z', 'HEAD' ], repository.path, 'getChangedP... | |
ca417366f5523c22da1000dbd6c4f6eb3c15eff5 | src/resources/BotFramework.ts | src/resources/BotFramework.ts | import * as request from "request";
import {BotFrameworkActivity} from "../definitions/BotFrameworkService";
/**
* Returns an answer to a question.
*/
export const sendActivity = function (activity: BotFrameworkActivity, serviceURL: string, conversationId: string, activityId: string, token: string): Promise<string> ... | Add utility for sending activities to bot framework. | Add utility for sending activities to bot framework.
| TypeScript | agpl-3.0 | deegles/cookietime,deegles/cookietime | ---
+++
@@ -0,0 +1,30 @@
+import * as request from "request";
+import {BotFrameworkActivity} from "../definitions/BotFrameworkService";
+
+/**
+ * Returns an answer to a question.
+ */
+export const sendActivity = function (activity: BotFrameworkActivity, serviceURL: string, conversationId: string, activityId: string... | |
38e405b5a368baa6bd92afbf0190ad971bad52c4 | app/src/ui/schannel-no-revocation-check/schannel-no-revocation-check.tsx | app/src/ui/schannel-no-revocation-check/schannel-no-revocation-check.tsx | import * as React from 'react'
import { Dialog, DialogContent, DialogFooter } from '../dialog'
import { OkCancelButtonGroup } from '../dialog/ok-cancel-button-group'
import { setGlobalConfigValue } from '../../lib/git'
interface ISChannelNoRevocationCheckDialogProps {
readonly url: string
readonly onDismissed: ()... | Add an initial dialog for the schannel error | Add an initial dialog for the schannel error
| TypeScript | mit | say25/desktop,desktop/desktop,j-f1/forked-desktop,artivilla/desktop,artivilla/desktop,kactus-io/kactus,desktop/desktop,j-f1/forked-desktop,j-f1/forked-desktop,kactus-io/kactus,say25/desktop,desktop/desktop,say25/desktop,artivilla/desktop,kactus-io/kactus,shiftkey/desktop,shiftkey/desktop,j-f1/forked-desktop,say25/deskt... | ---
+++
@@ -0,0 +1,61 @@
+import * as React from 'react'
+import { Dialog, DialogContent, DialogFooter } from '../dialog'
+import { OkCancelButtonGroup } from '../dialog/ok-cancel-button-group'
+import { setGlobalConfigValue } from '../../lib/git'
+
+interface ISChannelNoRevocationCheckDialogProps {
+ readonly url: ... | |
d383595f1aafad7b1d5a38d52449d733f7a44853 | webapp/src/app/router/app.routes.ts | webapp/src/app/router/app.routes.ts | import { provideRouter, RouterConfig } from '@angular/router';
import { LoginComponent } from "../login/login.component";
import { StudentProfileListComponent } from "../student-profile-list/student-profile-list.component";
import { GradeStudentListComponent } from "../grade-student-list/grade-student-list.component";... | Upgrade to angular rc3 and upgrade to new router | Upgrade to angular rc3 and upgrade to new router
| TypeScript | mit | bryant-pham/brograder,bryant-pham/brograder,bryant-pham/brograder,bryant-pham/brograder | ---
+++
@@ -0,0 +1,21 @@
+import { provideRouter, RouterConfig } from '@angular/router';
+
+import { LoginComponent } from "../login/login.component";
+import { StudentProfileListComponent } from "../student-profile-list/student-profile-list.component";
+import { GradeStudentListComponent } from "../grade-student-lis... | |
3f185078d8bdf57c6669b08a5ea135de65555d9d | types/list-stream/index.d.ts | types/list-stream/index.d.ts | // Type definitions for list-stream 1.0
// Project: https://github.com/rvagg/list-stream
// Definitions by: IanStorm <https://github.com/IanStorm>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
import { Duplex, DuplexOptions } from "stream";
interface ListStreamMeth... | // Type definitions for list-stream 1.0
// Project: https://github.com/rvagg/list-stream
// Definitions by: IanStorm <https://github.com/IanStorm>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.7
/// <reference types="node" />
import { Duplex, DuplexOptions } from "stream"... | Fix error while running `npm test` | Fix error while running `npm test`
| TypeScript | mit | georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,magny/DefinitelyTyped,dsebastien/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,dsebastien/DefinitelyTyped,markogresak/DefinitelyTyped,mcliment/DefinitelyTyped,magny/DefinitelyTyped,borisyankov/Defin... | ---
+++
@@ -2,6 +2,7 @@
// Project: https://github.com/rvagg/list-stream
// Definitions by: IanStorm <https://github.com/IanStorm>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+// TypeScript Version: 2.7
/// <reference types="node" />
|
039d3ea8c6afb27fa129adad27e3ec53f9462070 | packages/skin-database/migrations/20201202012156_remove_tweet_url.ts | packages/skin-database/migrations/20201202012156_remove_tweet_url.ts | import * as Knex from "knex";
export async function up(knex: Knex): Promise<any> {
await knex.schema.table("tweets", function (table) {
table.dropColumn("url");
});
}
export async function down(knex: Knex): Promise<any> {
await knex.schema.table("tweets", function (table) {
table.text("url");
});
}
| Remove tweet url field. It can be infered. | Remove tweet url field. It can be infered.
| TypeScript | mit | captbaritone/winamp2-js,captbaritone/winamp2-js,captbaritone/winamp2-js | ---
+++
@@ -0,0 +1,13 @@
+import * as Knex from "knex";
+
+export async function up(knex: Knex): Promise<any> {
+ await knex.schema.table("tweets", function (table) {
+ table.dropColumn("url");
+ });
+}
+
+export async function down(knex: Knex): Promise<any> {
+ await knex.schema.table("tweets", function (table... | |
14f0d33f791af59891a7a71a02ed7c014dfd19f2 | src/Test/Ast/Config/Image.ts | src/Test/Ast/Config/Image.ts | import { expect } from 'chai'
import { Up } from '../../../index'
import { insideDocumentAndParagraph } from '../Helpers'
import { ImageNode } from '../../../SyntaxNodes/ImageNode'
import { DocumentNode } from '../../../SyntaxNodes/DocumentNode'
describe('The term that represents image conventions', () => {
const... | Add 2 passing config tests | Add 2 passing config tests
| TypeScript | mit | start/up,start/up | ---
+++
@@ -0,0 +1,31 @@
+import { expect } from 'chai'
+import { Up } from '../../../index'
+import { insideDocumentAndParagraph } from '../Helpers'
+import { ImageNode } from '../../../SyntaxNodes/ImageNode'
+import { DocumentNode } from '../../../SyntaxNodes/DocumentNode'
+
+
+describe('The term that represents im... | |
539633af43d232be18d1792ef27e023531c3305d | types/koa-cors/koa-cors-tests.ts | types/koa-cors/koa-cors-tests.ts | import * as Koa from 'koa';
import * as KoaCors from 'koa-cors';
new Koa()
.use(KoaCors())
.use(KoaCors({}))
.use(KoaCors({ origin: '*' }));
| import Koa = require('koa');
import KoaCors = require('koa-cors');
const app = new Koa();
app.use(KoaCors());
app.use(KoaCors({}));
app.use(KoaCors({ origin: '*' }));
| Fix how modules are imported | Fix how modules are imported
| TypeScript | mit | markogresak/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/DefinitelyTyped,dsebastien/DefinitelyTyped,AgentME/DefinitelyTyped,dsebastien/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/DefinitelyTyped,AgentME/DefinitelyTyped,georgemarshall/DefinitelyTyped,AgentME/DefinitelyTyped,mcliment/Definite... | ---
+++
@@ -1,7 +1,7 @@
-import * as Koa from 'koa';
-import * as KoaCors from 'koa-cors';
+import Koa = require('koa');
+import KoaCors = require('koa-cors');
-new Koa()
- .use(KoaCors())
- .use(KoaCors({}))
- .use(KoaCors({ origin: '*' }));
+const app = new Koa();
+app.use(KoaCors());
+app.use(KoaCors({}... |
e8ed3007deb5dc8b6fefc22752ab68be369f3e0e | types/mustache/mustache-tests.ts | types/mustache/mustache-tests.ts |
var view1 = { title: "Joe", calc: function () { return 2 + 4; } };
var template1 = "{{title}} spends {{calc}}";
var output = Mustache.render(template1, view1);
var view2 = { forename: "Jane", calc: function () { return 10 + 5; } };
var template2 = "{{forename}} spends {{calc}}";
Mustache.parse(template2, null);
var ... |
var view1 = { title: "Joe", calc: function () { return 2 + 4; } };
var template1 = "{{title}} spends {{calc}}";
var output = Mustache.render(template1, view1);
var view2 = { forename: "Jane", calc: function () { return 10 + 5; } };
var template2 = "{{forename}} spends {{calc}}";
Mustache.parse(template2, null);
var ... | Add a test for testing constructors | Add a test for testing constructors
| TypeScript | mit | mcliment/DefinitelyTyped,borisyankov/DefinitelyTyped,AgentME/DefinitelyTyped,magny/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,AgentME/DefinitelyTyped,borisyankov/DefinitelyTyped,AgentME/DefinitelyTyped,dsebastien/DefinitelyTyped,magny/DefinitelyTyped,georgemarshall/DefinitelyTyped,geo... | ---
+++
@@ -12,3 +12,18 @@
var view3 = { firstName: "John", lastName: "Smith", blogURL: "http://testblog.com" };
var template3 = "<h1>{{firstName}} {{lastName}}</h1>Blog: {{blogURL}}";
var html = Mustache.to_html(template3, view3);
+
+var view4 = new class extends Mustache.Context
+{
+ constructor()
+ {
+ ... |
50b123cda4f55daee0cc40809f121cfcbb4f92ba | scripts/configureAlgolia.ts | scripts/configureAlgolia.ts | import * as algoliasearch from 'algoliasearch'
import * as _ from 'lodash'
import { ALGOLIA_ID } from 'settings'
import { ALGOLIA_SECRET_KEY } from 'serverSettings'
// This function initializes and applies settings to the Algolia search indices
// Algolia settings should be configured here rather than in the Algolia... | Add script to configure algolia indices from scratch | Add script to configure algolia indices from scratch
| TypeScript | mit | OurWorldInData/owid-grapher,OurWorldInData/owid-grapher,OurWorldInData/owid-grapher,OurWorldInData/owid-grapher,owid/owid-grapher,owid/owid-grapher,owid/owid-grapher,owid/owid-grapher,OurWorldInData/owid-grapher,owid/owid-grapher | ---
+++
@@ -0,0 +1,45 @@
+import * as algoliasearch from 'algoliasearch'
+import * as _ from 'lodash'
+
+import { ALGOLIA_ID } from 'settings'
+import { ALGOLIA_SECRET_KEY } from 'serverSettings'
+
+// This function initializes and applies settings to the Algolia search indices
+// Algolia settings should be configu... | |
467ee98072e9b29a95bddd855def7e11181e5d12 | shoedesktop_hr.ts | shoedesktop_hr.ts | <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0" language="hr_HR">
<context>
<name>ShowDesktop</name>
<message>
<location filename="../showdesktop.cpp" line="48"/>
<source>Show desktop</source>
<translation type="unfinished">Pokaži radnu površinu</translation>
<... | Create HR translations for panel and plugins | Create HR translations for panel and plugins
| TypeScript | lgpl-2.1 | lxde/lxqt-l10n | ---
+++
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.0" language="hr_HR">
+<context>
+ <name>ShowDesktop</name>
+ <message>
+ <location filename="../showdesktop.cpp" line="48"/>
+ <source>Show desktop</source>
+ <translation type="unfinished">Pokaž... | |
bfeccd70eceb8d584e8a5cb0318416db49f37c72 | src/actions/api.ts | src/actions/api.ts | import { API_LIMIT_EXCEEDED } from '../constants';
import { GroupId } from 'types';
export interface ApiRateLimitExceeded {
readonly type: API_LIMIT_EXCEEDED;
readonly watcherId: GroupId;
}
export const watcherExceededApiLimit = (
watcherId: GroupId
): ApiRateLimitExceeded => ({
type: API_LIMIT_EXCEEDED,
wa... | Add action creator for ApiRateLimitExceeded. | Add action creator for ApiRateLimitExceeded.
| TypeScript | mit | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | ---
+++
@@ -0,0 +1,14 @@
+import { API_LIMIT_EXCEEDED } from '../constants';
+import { GroupId } from 'types';
+
+export interface ApiRateLimitExceeded {
+ readonly type: API_LIMIT_EXCEEDED;
+ readonly watcherId: GroupId;
+}
+
+export const watcherExceededApiLimit = (
+ watcherId: GroupId
+): ApiRateLimitExceeded ... | |
fe12bd4cb1ab81c592a77cd71f084d487ff0e166 | test-d/implementation-result.ts | test-d/implementation-result.ts | import test from '..';
test('return a promise-like', t => {
return {
then(resolve) {
resolve?.();
}
};
});
test('return a subscribable', t => {
return {
subscribe({complete}) {
complete();
}
};
});
test('return anything else', t => {
return {
foo: 'bar',
subscribe() {},
then() {}
};
});
| Add test for implementation result types | Add test for implementation result types
| TypeScript | mit | avajs/ava,sindresorhus/ava,avajs/ava | ---
+++
@@ -0,0 +1,25 @@
+import test from '..';
+
+test('return a promise-like', t => {
+ return {
+ then(resolve) {
+ resolve?.();
+ }
+ };
+});
+
+test('return a subscribable', t => {
+ return {
+ subscribe({complete}) {
+ complete();
+ }
+ };
+});
+
+test('return anything else', t => {
+ return {
+ foo: ... | |
c11cfd4def38229d1db7014c047017c80a7f1aa5 | src/selectors/watcherTimers.ts | src/selectors/watcherTimers.ts | import { createSelector } from 'reselect';
import { watcherTimersSelector } from '.';
import { getWatcherIdsAssignedToFolder } from './watcherFolders';
export const numActiveWatchersInFolder = (folderId: string) =>
createSelector(
[watcherTimersSelector, getWatcherIdsAssignedToFolder(folderId)],
(watcherTime... | Add selector to determine the number of active watchers in a folder. | Add selector to determine the number of active watchers in a folder.
| TypeScript | mit | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | ---
+++
@@ -0,0 +1,13 @@
+import { createSelector } from 'reselect';
+import { watcherTimersSelector } from '.';
+import { getWatcherIdsAssignedToFolder } from './watcherFolders';
+
+export const numActiveWatchersInFolder = (folderId: string) =>
+ createSelector(
+ [watcherTimersSelector, getWatcherIdsAssignedToF... | |
0a439f3e15b725b80d614c62e85f9a153e38c4c1 | TypeScript/HackerRank/Practice/Data-Structures/Linked-Lists/insert-node-at-head.ts | TypeScript/HackerRank/Practice/Data-Structures/Linked-Lists/insert-node-at-head.ts | import * as fs from 'fs';
process.stdin.resume();
process.stdin.setEncoding('utf-8');
let inputString: any = '';
let currentLine = 0;
process.stdin.on('data', inputStdin => {
inputString += inputStdin;
});
process.stdin.on('end', function () {
inputString = inputString.replace(/\s*$/, '')
.split('\n... | Create implementation of insert node at head. | Create implementation of insert node at head.
| TypeScript | mit | Goyatuzo/Challenges,Goyatuzo/Challenges,Goyatuzo/Challenges,Goyatuzo/Challenges | ---
+++
@@ -0,0 +1,93 @@
+import * as fs from 'fs';
+
+process.stdin.resume();
+process.stdin.setEncoding('utf-8');
+
+let inputString: any = '';
+let currentLine = 0;
+
+process.stdin.on('data', inputStdin => {
+ inputString += inputStdin;
+});
+
+process.stdin.on('end', function () {
+ inputString = inputStri... | |
ec37be51de234cc84ffb6013e72c3cefe51ac09e | lib/helpers/scrollEventMock.ts | lib/helpers/scrollEventMock.ts | import {
NativeSyntheticEvent,
NativeScrollEvent,
NativeScrollPoint,
} from 'react-native';
export default (
contentOffset?: NativeScrollPoint,
): NativeSyntheticEvent<NativeScrollEvent> => ({
nativeEvent: {
contentOffset: { x: 0, y: 50, ...contentOffset },
contentInset: { top: 0, right: 0, left: 0, ... | Add scroll event mock generator | Add scroll event mock generator
| TypeScript | mit | hamidhadi/react-native-stretchy,hamidhadi/react-native-stretchy,hamidhadi/react-native-stretchy,hamidhadi/react-native-stretchy | ---
+++
@@ -0,0 +1,31 @@
+import {
+ NativeSyntheticEvent,
+ NativeScrollEvent,
+ NativeScrollPoint,
+} from 'react-native';
+
+export default (
+ contentOffset?: NativeScrollPoint,
+): NativeSyntheticEvent<NativeScrollEvent> => ({
+ nativeEvent: {
+ contentOffset: { x: 0, y: 50, ...contentOffset },
+ cont... | |
4b572e1b66ef7aed1a52f2b8f29eb2c5bbfff592 | dock-spawn/dock-spawn-tests.ts | dock-spawn/dock-spawn-tests.ts | /// <reference path="dock-spawn.d.ts" />
var dockManagerDiv = document.createElement('div'),
panelDiv1 = document.createElement('div'),
panelDiv2 = document.createElement('div'),
panelDiv3 = document.createElement('div');
document.body.appendChild(dockManagerDiv);
var dockManager = new dockspawn.DockMana... | Add tests for "dock-spawn" library. | Add tests for "dock-spawn" library.
| TypeScript | mit | wilfrem/DefinitelyTyped,TildaLabs/DefinitelyTyped,david-driscoll/DefinitelyTyped,sandersky/DefinitelyTyped,robl499/DefinitelyTyped,abbasmhd/DefinitelyTyped,ajtowf/DefinitelyTyped,pocke/DefinitelyTyped,sledorze/DefinitelyTyped,GodsBreath/DefinitelyTyped,lukehoban/DefinitelyTyped,jbrantly/DefinitelyTyped,moonpyk/Definite... | ---
+++
@@ -0,0 +1,22 @@
+/// <reference path="dock-spawn.d.ts" />
+
+var dockManagerDiv = document.createElement('div'),
+ panelDiv1 = document.createElement('div'),
+ panelDiv2 = document.createElement('div'),
+ panelDiv3 = document.createElement('div');
+
+document.body.appendChild(dockManagerDiv);
+
+var... | |
f880788fade3a79d1f364e73243306e13057a7a3 | bids-validator/src/tests/local/common.ts | bids-validator/src/tests/local/common.ts | import { readFileTree } from '../../files/deno.ts'
import { FileTree } from '../../types/filetree.ts'
import { validate } from '../../validators/bids.ts'
import { ValidationResult } from '../../types/validation-result.ts'
import { DatasetIssues } from '../../issues/datasetIssues.ts'
export async function validatePath(... | Add helper to quickly write tests for tests/data/... examples | tests: Add helper to quickly write tests for tests/data/... examples
| TypeScript | mit | nellh/bids-validator,nellh/bids-validator,nellh/bids-validator | ---
+++
@@ -0,0 +1,23 @@
+import { readFileTree } from '../../files/deno.ts'
+import { FileTree } from '../../types/filetree.ts'
+import { validate } from '../../validators/bids.ts'
+import { ValidationResult } from '../../types/validation-result.ts'
+import { DatasetIssues } from '../../issues/datasetIssues.ts'
+
+e... | |
6b06b4cc497c5f95b66267e2e83a0f8081cb5221 | test/invalid-iq.ts | test/invalid-iq.ts | import { parse, Registry } from '../src/jxt';
import XMPP, { IQ } from '../src/protocol';
const registry = new Registry();
registry.define(XMPP);
test('Invalid IQ - too many children', () => {
const xml = parse(`
<iq xmlns="jabber:client" type="get">
<query xmlns="http://jabber.org/protocol/disco#in... | Add tests for invalid IQ payloads | Add tests for invalid IQ payloads
| TypeScript | mit | otalk/stanza.io,legastero/stanza.io,legastero/stanza.io,otalk/stanza.io | ---
+++
@@ -0,0 +1,38 @@
+import { parse, Registry } from '../src/jxt';
+import XMPP, { IQ } from '../src/protocol';
+
+const registry = new Registry();
+registry.define(XMPP);
+
+test('Invalid IQ - too many children', () => {
+ const xml = parse(`
+ <iq xmlns="jabber:client" type="get">
+ <query xmlns... | |
db0feb0355de092dbd4072f65fdb899be00acf39 | src/tritium/parser/functions.ts | src/tritium/parser/functions.ts | @func Text.sayHi(Text %s) Text
@func Text.sayHi(Text %s) {
concat("hi ", %s)
}
@func Text.myConcat(Text %s, Text %t) Text Text
@func Text.myConcat(Text %s, Text %t, Text %u) {
concat(%s, %t, %u)
} | Test input for function parsing. | Test input for function parsing.
| TypeScript | mpl-2.0 | moovweb/tritium,moovweb/tritium,moovweb/tritium,moovweb/tritium,moovweb/tritium | ---
+++
@@ -0,0 +1,11 @@
+@func Text.sayHi(Text %s) Text
+
+@func Text.sayHi(Text %s) {
+ concat("hi ", %s)
+}
+
+@func Text.myConcat(Text %s, Text %t) Text Text
+
+@func Text.myConcat(Text %s, Text %t, Text %u) {
+ concat(%s, %t, %u)
+} | |
8890230b379819fd9c55c8717b8f14427258f986 | ee_tests/src/specs/page_objects/ui/modal_dialog.ts | ee_tests/src/specs/page_objects/ui/modal_dialog.ts | import { ExpectedConditions as until, ElementFinder } from 'protractor';
import { BaseElement } from './base.element';
export class ModalDialog extends BaseElement {
content = this.$('.modal-content');
body = this.content.$('.modal-body');
// NOTE: bodyContent is a tag
bodyContent = this.body.$('modal-content... | Add Modal Dialog ui element | Add Modal Dialog ui element
| TypeScript | apache-2.0 | ldimaggi/fabric8-test,ldimaggi/fabric8-test,ldimaggi/fabric8-test,ldimaggi/fabric8-test,ldimaggi/fabric8-test,ldimaggi/fabric8-test | ---
+++
@@ -0,0 +1,31 @@
+import { ExpectedConditions as until, ElementFinder } from 'protractor';
+import { BaseElement } from './base.element';
+
+export class ModalDialog extends BaseElement {
+ content = this.$('.modal-content');
+ body = this.content.$('.modal-body');
+
+ // NOTE: bodyContent is a tag
+ body... | |
bbc865b24664e65d9cac81abffef11ef85242d02 | server/api/mailer/send-mail.ts | server/api/mailer/send-mail.ts | ///<reference path="../../../typings/globals/nodemailer/index.d.ts"/>
import { Router, Response, Request, NextFunction } from "express";
import * as nodemailer from "nodemailer"
import { MailFunctions } from '../../libs/api/mail-functions'
const mailer: Router = Router();
/**
* End point for getting all questions of... | Add mail sending API call | Add mail sending API call
| TypeScript | mit | shavindraSN/examen,shavindraSN/examen,shavindraSN/examen | ---
+++
@@ -0,0 +1,50 @@
+///<reference path="../../../typings/globals/nodemailer/index.d.ts"/>
+
+import { Router, Response, Request, NextFunction } from "express";
+import * as nodemailer from "nodemailer"
+import { MailFunctions } from '../../libs/api/mail-functions'
+
+const mailer: Router = Router();
+/**
+ * En... | |
9a427c9216f31a796fc17ae42a259c531f67c894 | src/Command.ts | src/Command.ts | //import * as fs from "fs";
import Utils from "./Utils";
import Job from "./Job";
import {existsSync, statSync} from "fs";
const executors: Dictionary<(i: Job, a: string[]) => void> = {
cd: (job: Job, args: string[]): void => {
let newDirectory: string;
if (!args.length) {
newDirectory... | import Utils from "./Utils";
import Job from "./Job";
import {existsSync, statSync} from "fs";
const executors: Dictionary<(i: Job, a: string[]) => void> = {
cd: (job: Job, args: string[]): void => {
let newDirectory: string;
if (!args.length) {
newDirectory = Utils.homeDirectory;
... | Remove a commented out import. | Remove a commented out import.
| TypeScript | mit | railsware/upterm,vshatskyi/black-screen,shockone/black-screen,j-allard/black-screen,shockone/black-screen,drew-gross/black-screen,drew-gross/black-screen,black-screen/black-screen,black-screen/black-screen,black-screen/black-screen,drew-gross/black-screen,vshatskyi/black-screen,vshatskyi/black-screen,drew-gross/black-s... | ---
+++
@@ -1,4 +1,3 @@
-//import * as fs from "fs";
import Utils from "./Utils";
import Job from "./Job";
import {existsSync, statSync} from "fs"; |
e56a5109697be3b357eebdd5971090e3e496dd96 | src/tests/languageTests/general/decoratorTests.ts | src/tests/languageTests/general/decoratorTests.ts | import {getInfoFromString} from "./../../../main";
import {runFileDefinitionTests} from "./../../testHelpers";
describe("decorator arguments tests", () => {
const code = `
function MyClassDecorator(target: Function) {
}
@MyClassDecorator
class MyClass1 {
}
`;
const def = getInfoFromString(code);
runFile... | Add test for decorator without args. | Add test for decorator without args.
Not sure why this wasn't here before.
| TypeScript | mit | dsherret/type-info-ts,dsherret/ts-type-info,dsherret/ts-type-info,dsherret/type-info-ts | ---
+++
@@ -0,0 +1,33 @@
+import {getInfoFromString} from "./../../../main";
+import {runFileDefinitionTests} from "./../../testHelpers";
+
+describe("decorator arguments tests", () => {
+ const code = `
+function MyClassDecorator(target: Function) {
+}
+
+@MyClassDecorator
+class MyClass1 {
+}
+`;
+
+ const de... | |
0e4e1761a3c4c0797b9eb9dfa39b8762546de83e | examples/arduino-uno/button-activated-led.ts | examples/arduino-uno/button-activated-led.ts | import { periodic } from '@amnisio/rivulet';
import { Sources, createSinks, run } from '@amnisio/arduino-uno';
// Sample application that has the on board LED react to a user-provided switch.
// The switch is on the D2 pin of the UNO.
// Whenever the D2 pin value is HIGH, the on board LED is ON.
// Whenever it is not,... | Add button activated led sample | Add button activated led sample
| TypeScript | mit | artfuldev/RIoT | ---
+++
@@ -0,0 +1,15 @@
+import { periodic } from '@amnisio/rivulet';
+import { Sources, createSinks, run } from '@amnisio/arduino-uno';
+
+// Sample application that has the on board LED react to a user-provided switch.
+// The switch is on the D2 pin of the UNO.
+// Whenever the D2 pin value is HIGH, the on board ... | |
89e50bdc5a9f470c73d3b55bd46c4b8290e356e1 | console/src/app/common/Exceptions/PrometheusError.ts | console/src/app/common/Exceptions/PrometheusError.ts | /**
* Handles
*/
export class PrometheusError extends Error {
prometheusResponseStatus: number;
constructor(message: string, prometheusResponseStatus: number) {
super(message);
this.prometheusResponseStatus = prometheusResponseStatus;
// NOTE: Setting prototype implicitly in ord... | Add custom exception class for Prometheus error. | Add custom exception class for Prometheus error.
| TypeScript | mit | emc-mongoose/console,emc-mongoose/console,emc-mongoose/console | ---
+++
@@ -0,0 +1,20 @@
+/**
+ * Handles
+ */
+export class PrometheusError extends Error {
+
+ prometheusResponseStatus: number;
+
+ constructor(message: string, prometheusResponseStatus: number) {
+ super(message);
+ this.prometheusResponseStatus = prometheusResponseStatus;
+
+ // NO... | |
ce427b5f361cffa94742642b1d945a4c443ade3d | desktop/core/src/desktop/js/webComponents/SqlText.ts | desktop/core/src/desktop/js/webComponents/SqlText.ts | // Licensed to Cloudera, Inc. under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Cloudera, Inc. licenses this file
// to you under the Apache License, Version 2.0 (the
// 'License'); you may not use this f... | Add a sql-text web component to render formatted SQL | [frontend] Add a sql-text web component to render formatted SQL
| TypeScript | apache-2.0 | cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue | ---
+++
@@ -0,0 +1,28 @@
+// Licensed to Cloudera, Inc. under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. Cloudera, Inc. licenses this file
+// to you under the Apache License, Version 2.0 (the
+// '... | |
e9e79d733116b039a895add69ca7a5c125e4455e | client/imports/app/app.component.ts | client/imports/app/app.component.ts | import { Component } from '@angular/core';
import { Observable } from 'rxjs/Observable';
import { Courses } from '../../../both/collections/courses.collection';
import { Course } from '../../../both/models/course.model'; //Import interface
/*
Import styles
*/
import template from './app.component.html';
impo... | Update File with Imports and Components | Update File with Imports and Components | TypeScript | mit | aztec-developers/PortalPlus,aztec-developers/PortalPlus | ---
+++
@@ -0,0 +1,29 @@
+import { Component } from '@angular/core';
+import { Observable } from 'rxjs/Observable';
+
+import { Courses } from '../../../both/collections/courses.collection';
+import { Course } from '../../../both/models/course.model'; //Import interface
+/*
+ Import styles
+*/
+import template from '... | |
9babab4dad1771a8e2a3720c982f8652663c8b20 | app/src/ui/lib/focus-container.tsx | app/src/ui/lib/focus-container.tsx | import * as React from 'react'
import * as classNames from 'classnames'
interface IFocusContainerProps {
readonly className?: string
}
interface IFocusContainerState {
readonly focusInside: boolean
}
export class FocusContainer extends React.Component<
IFocusContainerProps,
IFocusContainerState
> {
public ... | Add a generic component for tracking whether focus is inside of component | Add a generic component for tracking whether focus is inside of component
| TypeScript | mit | kactus-io/kactus,j-f1/forked-desktop,artivilla/desktop,j-f1/forked-desktop,kactus-io/kactus,say25/desktop,shiftkey/desktop,desktop/desktop,desktop/desktop,artivilla/desktop,shiftkey/desktop,shiftkey/desktop,artivilla/desktop,desktop/desktop,kactus-io/kactus,say25/desktop,say25/desktop,shiftkey/desktop,kactus-io/kactus,... | ---
+++
@@ -0,0 +1,44 @@
+import * as React from 'react'
+import * as classNames from 'classnames'
+
+interface IFocusContainerProps {
+ readonly className?: string
+}
+
+interface IFocusContainerState {
+ readonly focusInside: boolean
+}
+
+export class FocusContainer extends React.Component<
+ IFocusContainerPro... | |
99bb59fa7796ed2dc25e7771d916411ebb1b9279 | scripts/client-build-stats.ts | scripts/client-build-stats.ts | import { registerTSPaths } from '../server/helpers/register-ts-paths'
registerTSPaths()
import { readdir, stat } from 'fs-extra'
import { join } from 'path'
import { root } from '@server/helpers/core-utils'
async function run () {
const result = {
app: await buildResult(join(root(), 'client', 'dist', 'en-US')),... | Add client build stats script | Add client build stats script
| TypeScript | agpl-3.0 | Chocobozzz/PeerTube,Chocobozzz/PeerTube,Chocobozzz/PeerTube,Chocobozzz/PeerTube | ---
+++
@@ -0,0 +1,33 @@
+import { registerTSPaths } from '../server/helpers/register-ts-paths'
+registerTSPaths()
+
+import { readdir, stat } from 'fs-extra'
+import { join } from 'path'
+import { root } from '@server/helpers/core-utils'
+
+async function run () {
+ const result = {
+ app: await buildResult(join... | |
ca2e198e90a2b722f86d2344471fa41476e8f7c9 | ui/test/logs/reducers/logs.test.ts | ui/test/logs/reducers/logs.test.ts | import reducer, {defaultState} from 'src/logs/reducers'
import {setTimeWindow} from 'src/logs/actions'
describe('Logs.Reducers', () => {
it('can set a time window', () => {
const expected = {
timeOption: 'now',
windowOption: '1h',
upper: null,
lower: 'now() - 1h',
seconds: 3600,
... | import reducer, {defaultState} from 'src/logs/reducers'
import {setTimeWindow, setTimeMarker, setTimeBounds} from 'src/logs/actions'
describe('Logs.Reducers', () => {
it('can set a time window', () => {
const actionPayload = {
windowOption: '10m',
seconds: 600,
}
const expected = {
tim... | Add Tests for new time range reducers | Add Tests for new time range reducers
Co-authored-by: Alex Paxton <bbdfaa9e47dc3439aa28f1fb2e87c12d0b156815@gmail.com>
Co-authored-by: Daniel Campbell <821887c588844d83343e7d6ba83259f50689d18c@gmail.com>
| TypeScript | mit | mark-rushakoff/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,influxdb/influxdb,influxdb/influxdb,nooproblem/influxdb,li-ang/influxdb,influxdata/influxdb,li-ang/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,influxdata/influxdb,nooproblem/inf... | ---
+++
@@ -1,17 +1,57 @@
import reducer, {defaultState} from 'src/logs/reducers'
-import {setTimeWindow} from 'src/logs/actions'
+import {setTimeWindow, setTimeMarker, setTimeBounds} from 'src/logs/actions'
describe('Logs.Reducers', () => {
it('can set a time window', () => {
+ const actionPayload = {
+ ... |
475120f0956d948434a151c1385805023dce1936 | src/fix/autofocus.ts | src/fix/autofocus.ts | /**
* When creating components asynchronously (e.g. if using RequireJS to load them), the `autofocus` property will not
* work, as the browser will look for elements with this attribute on page load, and the page would have already loaded
* by the time the component gets inserted into the DOM. If you still wish to u... | Add fix for auto-focus problem with async. component creation | Add fix for auto-focus problem with async. component creation
| TypeScript | agpl-3.0 | inad9300/Soil,inad9300/Soil | ---
+++
@@ -0,0 +1,24 @@
+/**
+ * When creating components asynchronously (e.g. if using RequireJS to load them), the `autofocus` property will not
+ * work, as the browser will look for elements with this attribute on page load, and the page would have already loaded
+ * by the time the component gets inserted into ... | |
c87970ae5d1c5f34406d3993f4b1b48fc225df45 | examples/spaceGame.ts | examples/spaceGame.ts | import { Boolean, Number, String, Literal, Array, Tuple, Record, Union, Static } from '../src/index'
const Vector = Tuple(Number, Number, Number)
type Vector = Static<typeof Vector>
const Asteroid = Record({
type: Literal('asteroid'),
location: Vector,
mass: Number,
})
type Asteroid = Static<typeof Asteroid>
c... | Add an examples folder and add the README example to it | Add an examples folder and add the README example to it
| TypeScript | mit | typeetfunc/runtypes,pelotom/runtypes,pelotom/runtypes | ---
+++
@@ -0,0 +1,48 @@
+import { Boolean, Number, String, Literal, Array, Tuple, Record, Union, Static } from '../src/index'
+
+const Vector = Tuple(Number, Number, Number)
+type Vector = Static<typeof Vector>
+
+const Asteroid = Record({
+ type: Literal('asteroid'),
+ location: Vector,
+ mass: Number,
+})
+type... | |
454a11124f8a5474885743576df9d66ae0ff1331 | tests/test_commissioning_events.ts | tests/test_commissioning_events.ts | import myparser = require('../lib/epcisparser');
import eventtypes = require('../lib/epcisevents');
var assert = require('assert');
var fs = require('fs');
describe('epcisconverter', () => {
before(function(){
// before all tests
});
describe('parse commissioning events', () => {
var events:eventty... | Add commissioning events test case | Add commissioning events test case
| TypeScript | mit | matgnt/epcis-js,matgnt/epcis-js | ---
+++
@@ -0,0 +1,55 @@
+import myparser = require('../lib/epcisparser');
+import eventtypes = require('../lib/epcisevents');
+var assert = require('assert');
+var fs = require('fs');
+
+describe('epcisconverter', () => {
+ before(function(){
+ // before all tests
+ });
+
+
+ describe('parse commissioning e... | |
d2a5819d31ead08a2d8731eceeed0c6d29028218 | pg/pg-tests.ts | pg/pg-tests.ts | /// <reference path="pg.d.ts" />
import * as pg from "pg";
var conString = "postgres://username:password@localhost/database";
// https://github.com/brianc/node-pg-types
pg.types.setTypeParser(20, (val) => Number(val));
// Client pooling
pg.connect(conString, (err, client, done) => {
if (err) {
return con... | /// <reference path="pg.d.ts" />
import * as pg from "pg";
var conString = "postgres://username:password@localhost/database";
// https://github.com/brianc/node-pg-types
pg.types.setTypeParser(20, (val) => Number(val));
// Client pooling
pg.connect(conString, (err, client, done) => {
if (err) {
return con... | Add test for calling done with an argument | Add test for calling done with an argument
| TypeScript | mit | paulmorphy/DefinitelyTyped,amanmahajan7/DefinitelyTyped,hellopao/DefinitelyTyped,nainslie/DefinitelyTyped,nycdotnet/DefinitelyTyped,one-pieces/DefinitelyTyped,ryan10132/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,syuilo/DefinitelyTyped,johan-gorter/DefinitelyTyped,georgemarshall/DefinitelyTyped,dsebastien/DefinitelyTyp... | ---
+++
@@ -12,9 +12,12 @@
return console.error("Error fetching client from pool", err);
}
client.query("SELECT $1::int AS number", ["1"], (err, result) => {
- done();
if (err) {
+ done(err);
return console.error("Error running query", err);
+ }
+ ... |
d15ae6339654f53ea34c2929829bb70669ef25c9 | ts/test-node/util/zkgroup_test.ts | ts/test-node/util/zkgroup_test.ts | // Copyright 2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { assert } from 'chai';
import * as fs from 'node:fs';
import path from 'node:path';
import { ServerPublicParams } from '@signalapp/libsignal-client/zkgroup';
describe('zkgroup', () => {
describe('serverPublicParams', () => {
... | Test that the zkgroup serverPublicParams are up to date | Test that the zkgroup serverPublicParams are up to date
| TypeScript | agpl-3.0 | nrizzio/Signal-Desktop,nrizzio/Signal-Desktop,nrizzio/Signal-Desktop,nrizzio/Signal-Desktop | ---
+++
@@ -0,0 +1,38 @@
+// Copyright 2022 Signal Messenger, LLC
+// SPDX-License-Identifier: AGPL-3.0-only
+
+import { assert } from 'chai';
+import * as fs from 'node:fs';
+import path from 'node:path';
+import { ServerPublicParams } from '@signalapp/libsignal-client/zkgroup';
+
+describe('zkgroup', () => {
+ des... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.