file_path stringlengths 3 280 | file_language stringclasses 66
values | content stringlengths 1 1.04M | repo_name stringlengths 5 92 | repo_stars int64 0 154k | repo_description stringlengths 0 402 | repo_primary_language stringclasses 108
values | developer_username stringlengths 1 25 | developer_name stringlengths 0 30 | developer_company stringlengths 0 82 |
|---|---|---|---|---|---|---|---|---|---|
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/core/HNa.ts | TypeScript | /*
* Copyright (c) 2020, J2 Innovations. All Rights Reserved
*/
/* eslint @typescript-eslint/no-unused-vars: "off", @typescript-eslint/no-empty-function: "off" */
import { Kind } from "./Kind";
import {
HVal,
NOT_SUPPORTED_IN_FILTER_MSG,
valueInspect,
valueIsKind,
valueMatches,
} from "./HVal";
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/core/HNamespace.ts | TypeScript | /*
* Copyright (c) 2020, J2 Innovations. All Rights Reserved
*/
import { HGrid } from "./HGrid";
import { HDict } from "./HDict";
import { HStr } from "./HStr";
import { HList } from "./HList";
import { HSymbol } from "./HSymbol";
import { Kind } from "./Kind";
import { memoize } from "../util/memoize";
import { Zin... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/core/HNormalizer.ts | TypeScript | /*
* Copyright (c) 2020, J2 Innovations. All Rights Reserved
*/
import { HDict } from "./HDict";
import { HGrid } from "./HGrid";
import { HList } from "./HList";
import { HNamespace } from "./HNamespace";
import { HStr } from "./HStr";
import { HSymbol } from "./HSymbol";
import { HUri } from "./HUri";
import { HVa... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/core/HNum.ts | TypeScript | /*
* Copyright (c) 2020, J2 Innovations. All Rights Reserved
*/
import { Kind } from "./Kind";
import {
HVal,
CANNOT_CHANGE_READONLY_VALUE,
valueInspect,
valueIsKind,
valueMatches,
} from "./HVal";
import { HaysonNum, HaysonNumVal } from "./hayson";
import { Node } from "../filter/Node";
import {... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/core/HRef.ts | TypeScript | /*
* Copyright (c) 2020, J2 Innovations. All Rights Reserved
*/
import { Kind } from "./Kind";
import {
HVal,
CANNOT_CHANGE_READONLY_VALUE,
valueInspect,
valueIsKind,
valueMatches,
} from "./HVal";
import { HaysonRef } from "./hayson";
import { HStr } from "./HStr";
import { Node } from "../filte... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/core/HRemove.ts | TypeScript | /*
* Copyright (c) 2020, J2 Innovations. All Rights Reserved
*/
/* eslint @typescript-eslint/no-unused-vars: "off", @typescript-eslint/no-empty-function: "off" */
import { Kind } from "./Kind";
import {
HVal,
NOT_SUPPORTED_IN_FILTER_MSG,
valueInspect,
valueIsKind,
valueMatches,
} from "./HVal";
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/core/HSpan.ts | TypeScript | /*
* Copyright (c) 2021, J2 Innovations. All Rights Reserved
*/
/* eslint @typescript-eslint/no-explicit-any: "off" */
import { HDateTime } from "./HDateTime";
import { HDate } from "./HDate";
import { HStr } from "./HStr";
import { ZincReader } from "./ZincReader";
import { valueIsKind } from "./HVal";
import { Ki... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/core/HStr.ts | TypeScript | /*
* Copyright (c) 2020, J2 Innovations. All Rights Reserved
*/
import { Kind } from "./Kind";
import {
HVal,
CANNOT_CHANGE_READONLY_VALUE,
valueInspect,
valueIsKind,
valueMatches,
} from "./HVal";
import { Node } from "../filter/Node";
import { HGrid } from "./HGrid";
import { HList } from "./HL... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/core/HSymbol.ts | TypeScript | /*
* Copyright (c) 2020, J2 Innovations. All Rights Reserved
*/
import { Kind } from "./Kind";
import {
HVal,
CANNOT_CHANGE_READONLY_VALUE,
valueInspect,
valueIsKind,
valueMatches,
} from "./HVal";
import { HaysonSymbol } from "./hayson";
import { Node } from "../filter/Node";
import { HGrid } fr... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/core/HTime.ts | TypeScript | /*
* Copyright (c) 2020, J2 Innovations. All Rights Reserved
*/
import { Kind } from "./Kind";
import {
HVal,
CANNOT_CHANGE_READONLY_VALUE,
valueInspect,
valueIsKind,
valueMatches,
} from "./HVal";
import { HaysonTime } from "./hayson";
import { Node } from "../filter/Node";
import { HGrid } from... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/core/HUnit.ts | TypeScript | /*
* Copyright (c) 2020, J2 Innovations. All Rights Reserved
*/
import { UnitDatabase } from "./UnitDatabase";
import { UnitDimensions, UnitDimensionsData } from "./UnitDimensions";
/**
* The module cached unit database.
*/
let db: UnitDatabase | undefined;
/**
* @returns The unit database.
*/
function getDb()... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/core/HUri.ts | TypeScript | /*
* Copyright (c) 2020, J2 Innovations. All Rights Reserved
*/
import { Kind } from "./Kind";
import {
HVal,
CANNOT_CHANGE_READONLY_VALUE,
valueInspect,
valueIsKind,
valueMatches,
} from "./HVal";
import { HaysonUri } from "./hayson";
import { Node } from "../filter/Node";
import { HGrid } from ... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/core/HVal.ts | TypeScript | /*
* Copyright (c) 2020, J2 Innovations. All Rights Reserved
*/
import { Kind } from "./Kind";
import { HaysonVal } from "./hayson";
import { HFilter } from "../filter/HFilter";
import { Node } from "../filter/Node";
import { HList } from "./HList";
import { HGrid } from "./HGrid";
import { HDict } from "./HDict";
i... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/core/HXStr.ts | TypeScript | /*
* Copyright (c) 2020, J2 Innovations. All Rights Reserved
*/
import { Kind } from "./Kind";
import {
HVal,
NOT_SUPPORTED_IN_FILTER_MSG,
CANNOT_CHANGE_READONLY_VALUE,
valueInspect,
valueIsKind,
valueMatches,
} from "./HVal";
import { HaysonXStr } from "./hayson";
import { Node } from "../fi... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/core/Kind.ts | TypeScript | /*
* Copyright (c) 2020, J2 Innovations. All Rights Reserved
*/
/**
* Haystack kind enumeration.
*/
export enum Kind {
Str = "str",
Number = "number",
Date = "date",
Time = "time",
Uri = "uri",
Ref = "ref",
Bool = "bool",
Dict = "dict",
DateTime = "dateTime",
Marker = "marke... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/core/NormalizationLogger.ts | TypeScript | /*
* Copyright (c) 2020, J2 Innovations. All Rights Reserved
*/
/**
* Normalization logger.
*
* Each handler has a default message provided as well as a lexicon id
* and arguments. A handler can use the default message or use the lexicon
* key to look up and localized version of it accordingly.
*/
export inter... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/core/TrioReader.ts | TypeScript | /*
* Copyright (c) 2020, J2 Innovations. All Rights Reserved
*/
import { Scanner } from "../util/Scanner";
import { HDict, HValObj } from "./HDict";
import { ZincReader } from "./ZincReader";
import { LocalizedError } from "../util/LocalizedError";
import { HMarker } from "./HMarker";
import { HStr } from "./HStr";
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/core/TrioWriter.ts | TypeScript | /*
* Copyright (c) 2020, J2 Innovations. All Rights Reserved
*/
import { valueIsKind, ZINC_NULL } from "./HVal";
import { Kind } from "./Kind";
import { HDict } from "./HDict";
import { HGrid } from "./HGrid";
import { HMarker } from "./HMarker";
/**
* The type of item in the trio document.
*/
enum ItemType {
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/core/UnitDatabase.ts | TypeScript | /*
* Copyright (c) 2020, J2 Innovations. All Rights Reserved
*/
import { memoize } from "../util/memoize";
import { HUnit } from "./HUnit";
import { UnitDimensions } from "./UnitDimensions";
/**
* The central database where all units are registered and cached.
*/
export class UnitDatabase {
/**
* All uni... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/core/UnitDimensions.ts | TypeScript | /*
* Copyright (c) 2020, J2 Innovations. All Rights Reserved
*/
/**
* The unit dimension data.
*/
export interface UnitDimensionsData {
kg: number;
m: number;
sec: number;
K: number;
A: number;
mol: number;
cd: number;
}
/**
* A unit's dimension.
*
* https://fantom.org/doc/sys/Unit
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/core/ZincReader.ts | TypeScript | /*
* Copyright (c) 2020, J2 Innovations. All Rights Reserved
*/
import { LocalizedError } from "../util/LocalizedError";
import { HTime } from "./HTime";
import { HNum } from "./HNum";
import { HDate } from "./HDate";
import { HUri } from "./HUri";
import { HStr } from "./HStr";
import { HRef } from "./HRef";
import... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/core/hayson.ts | TypeScript | /*
* Copyright (c) 2020, J2 Innovations. All Rights Reserved
*/
/* eslint @typescript-eslint/no-empty-interface: "off" */
/**
* Haystack JSON format types.
*
* As described in https://bitbucket.org/finproducts/hayson/src/master/
*
* @module
*/
import { Kind } from "./Kind";
export type HaysonNumVal = number... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/core/util.ts | TypeScript | /*
* Copyright (c) 2020, J2 Innovations. All Rights Reserved
*/
/**
* Haystack core methods
*
* @module
*/
import { Kind } from "./Kind";
import { HVal, isHVal, OptionalHVal } from "./HVal";
import { HBool } from "./HBool";
import { HDate } from "./HDate";
import { HNum } from "./HNum";
import { HRef } from "./... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/entry.ts | TypeScript | export * from "./index";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/filter/EvalContext.ts | TypeScript | /*
* Copyright (c) 2020, J2 Innovations. All Rights Reserved
*/
import { HRef } from "../core/HRef";
import { HDict } from "../core/HDict";
import { HNamespace } from "../core/HNamespace";
export interface EvalContextResolve {
(ref: HRef): HDict | undefined;
}
/**
* The evaluation context.
*
* The context i... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/filter/FilterLexer.ts | TypeScript | /*
* Copyright (c) 2019, J2 Innovations. All Rights Reserved
*/
import { Token } from "./Token";
import { tokens } from "./tokens";
import { TokenValue } from "./TokenValue";
import { TokenObj } from "./TokenObj";
import { TokenPaths } from "./TokenPaths";
import { TokenType } from "./TokenType";
import { TokenRelat... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/filter/FilterParser.ts | TypeScript | /*
* Copyright (c) 2019, J2 Innovations. All Rights Reserved
*/
import { Token } from "./Token";
import { tokens } from "./tokens";
import { TokenObj, isTokenObj } from "./TokenObj";
import { TokenPaths } from "./TokenPaths";
import { TokenValue, isTokenValue } from "./TokenValue";
import { TokenType } from "./Token... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/filter/GenerateHaystackFilterV3Visitor.ts | TypeScript | /*
* Copyright (c) 2019, J2 Innovations. All Rights Reserved
*/
import { HSymbol } from "../core/HSymbol";
import { HNamespace } from "../core/HNamespace";
import { GenerateHaystackFilterVisitor } from "./GenerateHaystackFilterVisitor";
import { IsANode, RelationshipNode, WildcardEqualsNode } from "./Node";
import {... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/filter/GenerateHaystackFilterVisitor.ts | TypeScript | /*
* Copyright (c) 2019, J2 Innovations. All Rights Reserved
*/
import {
Visitor,
CondOrNode,
CondAndNode,
ParensNode,
HasNode,
MissingNode,
CmpNode,
IsANode,
RelationshipNode,
WildcardEqualsNode,
} from "./Node";
/**
* Generates a Haystack Filter String.
*/
export class Ge... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/filter/HFilter.ts | TypeScript | /*
* Copyright (c) 2019, J2 Innovations. All Rights Reserved
*/
import { FilterParser } from "./FilterParser";
import { FilterLexer } from "./FilterLexer";
import { isNode, Node } from "./Node";
import { EvalContext } from "./EvalContext";
import { GenerateHaystackFilterVisitor } from "./GenerateHaystackFilterVisito... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/filter/HFilterBuilder.ts | TypeScript | /*
* Copyright (c) 2020, J2 Innovations. All Rights Reserved
*/
import { HUri } from "../core/HUri";
import { HBool } from "../core/HBool";
import { HRef } from "../core/HRef";
import { HNum } from "../core/HNum";
import { HDate } from "../core/HDate";
import { HTime } from "../core/HTime";
import { HStr } from "../... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/filter/Node.ts | TypeScript | /*
* Copyright (c) 2019, J2 Innovations. All Rights Reserved
*/
/* eslint @typescript-eslint/no-explicit-any: "off", @typescript-eslint/explicit-module-boundary-types: "off",
@typescript-eslint/no-empty-function: "off" */
import { Token } from "./Token";
import { TokenObj } from "./TokenObj";
import { TokenValu... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/filter/Token.ts | TypeScript | /*
* Copyright (c) 2019, J2 Innovations. All Rights Reserved
*/
/**
* Base token definitions.
*
* @module
*/
import { TokenType } from "./TokenType";
import { HaysonVal } from "../core/hayson";
/**
* A token created when parsing a string.
*/
export interface Token {
/**
* @returns The type of token.... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/filter/TokenObj.ts | TypeScript | /*
* Copyright (c) 2020, J2 Innovations. All Rights Reserved
*/
import { TokenType } from "./TokenType";
import { Token } from "./Token";
import { HaysonVal } from "../core/hayson";
/**
* A token object with some parsed text.
*/
export class TokenObj implements Token {
/**
* The token type.
*/
p... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/filter/TokenPaths.ts | TypeScript | /*
* Copyright (c) 2020, J2 Innovations. All Rights Reserved
*/
import { TokenType } from "./TokenType";
import { Token } from "./Token";
import { HaysonVal } from "../core/hayson";
/**
* A token with multiple paths.
*
* This token is used to hold dereferenced path information.
*/
export class TokenPaths implem... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/filter/TokenRelationship.ts | TypeScript | /*
* Copyright (c) 2020, J2 Innovations. All Rights Reserved
*/
import { TokenType } from "./TokenType";
import { Token } from "./Token";
import { HaysonVal } from "../core/hayson";
/**
* A token that identifies a relationship query.
*/
export class TokenRelationship implements Token {
/**
* The token ty... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/filter/TokenType.ts | TypeScript | /*
* Copyright (c) 2019, J2 Innovations. All Rights Reserved
*/
/**
* The type of token
*/
export enum TokenType {
// End of file
eof,
// Text
text,
// Paths
paths,
// Value types
string,
number,
date,
time,
uri,
ref,
boolean,
symbol,
// Operators
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/filter/TokenValue.ts | TypeScript | /*
* Copyright (c) 2020, J2 Innovations. All Rights Reserved
*/
import { HVal } from "../core/HVal";
import { HBool } from "../core/HBool";
import { TokenType } from "./TokenType";
import { Token } from "./Token";
import { HaysonVal } from "../core/hayson";
/**
* A token that has a decoded haystack value.
*/
expo... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/filter/tokens.ts | TypeScript | /*
* Copyright (c) 2020, J2 Innovations. All Rights Reserved
*/
import { TokenObj } from "./TokenObj";
import { TokenType } from "./TokenType";
/**
* A collection of constant tokens.
*/
export const tokens = {
eof: new TokenObj(TokenType.eof, "<eof>"),
equals: new TokenObj(TokenType.equals, "=="),
not... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/globalEntry.ts | TypeScript | /*
* Copyright (c) 2020, J2 Innovations. All Rights Reserved
*/
/* eslint @typescript-eslint/no-explicit-any: "off" */
/**
* The global web entry for Haystack Core.
*
* This will load the library under the global 'hs' namespace.
*
* This is only intended for playing with the Haystack Core library.
*
* @modul... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/index.ts | TypeScript | /*
* Copyright (c) 2019, J2 Innovations. All Rights Reserved
*/
/**
* The core index.
*
* @module
*/
// Filter
export * from "./filter/HFilter";
export * from "./filter/GenerateHaystackFilterVisitor";
export * from "./filter/GenerateHaystackFilterV3Visitor";
export * from "./filter/EvalContext";
export * from "... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/shorthand.ts | TypeScript | /*
* Copyright (c) 2020, J2 Innovations. All Rights Reserved
*/
import { HBool } from "./core/HBool";
import { HCoord, CoordObj } from "./core/HCoord";
import { HDate, DateObj } from "./core/HDate";
import { HDateTime } from "./core/HDateTime";
import { HSymbol } from "./core/HSymbol";
import { HDict, HValObj } from... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/util/LocalizedError.ts | TypeScript | /*
* Copyright (c) 2019, J2 Innovations. All Rights Reserved
*/
/**
* An error that has some localized information attached to it.
*
* This error has extra meta data associated with the error that can be
* translated into different locales.
*/
export class LocalizedError extends Error {
readonly #lex: strin... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/util/Scanner.ts | TypeScript | import { LocalizedError } from "./LocalizedError";
/*
* Copyright (c) 2020, J2 Innovations. All Rights Reserved
*/
const A_CHAR_CODE = "a".charCodeAt(0);
const Z_CHAR_CODE = "z".charCodeAt(0);
const UPPER_A_CHAR_CODE = "A".charCodeAt(0);
const UPPER_Z_CHAR_CODE = "Z".charCodeAt(0);
const ZERO_CHAR_CODE = "0".charCo... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/util/memoize.ts | TypeScript | /*
* Copyright (c) 2020, J2 Innovations. All Rights Reserved
*/
/* eslint @typescript-eslint/no-explicit-any: "off", @typescript-eslint/explicit-module-boundary-types: "off" */
interface Cache {
[prop: string]: any;
}
/**
* Return the memoize cache.
*
* @param obj The object to return the cache from.
* @re... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/haystack-core/input/util/profile.ts | TypeScript | /*
* Copyright (c) 2020, J2 Innovations. All Rights Reserved
*/
/* eslint @typescript-eslint/no-explicit-any: "off", @typescript-eslint/explicit-module-boundary-types: "off" */
function out(text: string): void {
console.log(text);
}
function profileFunc(
targetName: string,
propertyKey: string,
des... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8224/jszip/entry.ts | TypeScript | import * as jszip from "https://deno.land/x/jszip/mod.ts";
console.log(jszip);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8285/entry.ts | TypeScript | export * from "https://deno.land/x/djwt@v1.9/mod.ts";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8597/.case1/entry.ts | TypeScript | import "https://cdn.skypack.dev/-/@tensorflow/tfjs@v2.6.0-Nuh6TCs4sBWcdq0s5qn4/dist=es2020/@tensorflow/tfjs.js";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8597/.case3/entry.ts | TypeScript | import "./tfjs";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8597/.case3/tfjs.ts | TypeScript | import { version_core } from "https://cdn.skypack.dev//-/@tensorflow/tfjs-core@v2.6.0-JX8lR1C58ILDYMLTVvxc/dist=es2020/@tensorflow/tfjs-core.js";
export * from "https://cdn.skypack.dev//-/@tensorflow/tfjs-core@v2.6.0-JX8lR1C58ILDYMLTVvxc/dist=es2020/@tensorflow/tfjs-core.js";
export * from "https://cdn.skypack.dev//-/@... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8597/.case4/entry.ts | TypeScript | import "./tfjs";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8597/.case4/tfjs.ts | TypeScript | import { version_core } from "https://cdn.skypack.dev/-/@tensorflow/tfjs-core@v2.6.0-JX8lR1C58ILDYMLTVvxc/dist=es2020/@tensorflow/tfjs-core.js";
export * from "https://cdn.skypack.dev/-/@tensorflow/tfjs-core@v2.6.0-JX8lR1C58ILDYMLTVvxc/dist=es2020/@tensorflow/tfjs-core.js";
export * from "https://cdn.skypack.dev/-/@ten... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8597/.case5/entry.ts | TypeScript | import "./tfjs";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8597/.case5/tfjs.ts | TypeScript | export * from "https://cdn.skypack.dev/-/@tensorflow/tfjs-core@v2.6.0-JX8lR1C58ILDYMLTVvxc/dist=es2020/@tensorflow/tfjs-core.js";
export * from "https://cdn.skypack.dev/-/@tensorflow/tfjs-layers@v2.6.0-CoxcCXNxQxzq0ZkceiB7/dist=es2020/@tensorflow/tfjs-layers.js";
import * as tfjsData from "https://cdn.skypack.dev/-/@te... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8597/case2/core.ts | TypeScript | class Class {}
var serialization = Object.freeze({
__proto__: null,
Class,
});
export { serialization };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8597/case2/entry.ts | TypeScript | import "./tfjs";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8597/case2/layers.ts | TypeScript | import { serialization } from "./core";
export class Constraint extends serialization.Class {
getConfig() {
return {};
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8597/case2/tfjs.ts | TypeScript | export * from "./core";
export * from "./layers";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8725/case1/entry.ts | TypeScript | export * from "https://raw.githubusercontent.com/nats-io/nats.ws/master/src/mod.ts";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8725/case2/entry.ts | TypeScript | export * from "https://raw.githubusercontent.com/nats-io/nats.ws/master/src/mod.ts";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8725/case3/connect.ts | TypeScript | import "./nats-base-client";
export function connect() {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8725/case3/deps.ts | TypeScript | export * from "./nats-base-client";
export { connect } from "./connect";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8725/case3/entry.ts | TypeScript | export * from "./deps";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8725/case3/nats-base-client.ts | TypeScript | export * from "./nats/internal-mod";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8725/case3/nats/internal-mod.ts | TypeScript | export * from "./nkeys";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8725/case3/nats/nkeys.ts | TypeScript | export * as nkeys from "https://raw.githubusercontent.com/nats-io/nkeys.js/v1.0.0-7/modules/esm/mod.ts";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8725/case4/entry.ts | TypeScript | export * from "https://raw.githubusercontent.com/nats-io/nats.ws/master/src/nats-base-client.ts";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8736/entry.ts | TypeScript | import { assert } from "https://deno.land/std@0.79.0/_util/assert.ts";
const TEST = undefined;
assert(!TEST, "TEST must not be defined!");
console.log(`Test is ${TEST}`);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8770/entry.ts | TypeScript | import { format } from "path";
export * from "https://deno.land/x/deno_image@v0.0.3/mod.ts";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8828/1/entry.ts | TypeScript | export * from "https://deno.land/x/abc@v1.2.4/mod.ts";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8828/2/entry.ts | TypeScript | export * from "https://deno.land/x/dndb@0.2.4/mod.ts";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8943/deps.ts | TypeScript | export * as flags from "https://deno.land/std@0.83.0/flags/mod.ts";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8943/entry.ts | TypeScript | import { flags } from "./deps.ts";
console.log(flags.parse(Deno.args));
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8952/entry.ts | TypeScript | export * from "https://deno.land/std@0.82.0/flags/mod.ts";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8970/case1/entry.ts | TypeScript | import * as React from "https://esm.sh/react@17.0.1";
console.log(React);
if (!React) {
throw new Error();
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8970/case2/entry.ts | TypeScript | import React from "https://esm.sh/react@17.0.1";
console.log(React);
if (!React) {
throw new Error();
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8985/case1/entry.ts | TypeScript | import * as log from "https://deno.land/std@0.83.0/log/mod.ts";
console.log(log);
const logger = log.getLogger();
console.log(logger);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8985/case2/entry.ts | TypeScript | import { getLogger } from "https://deno.land/std@0.83.0/log/mod.ts";
const logger = getLogger();
console.log(logger);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-8988/entry.ts | TypeScript | class T {
private throws: number[] = [];
m(): void {
console.log(this.throws.length);
}
}
new T().m();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-9097/entry.ts | TypeScript | export * from "https://raw.githubusercontent.com/colinhacks/zod/654680afc2ede388e71e09104eac5a0088fe3207/deno/lib/index.ts";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-9200/case1/entry.ts | TypeScript | import { isEmail } from "https://deno.land/x/segno@v1.1.0/mod.ts";
isEmail("test@test.com");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-9307/.case1/input/deps.ts | TypeScript | export { JsonPointer } from "https://cdn.skypack.dev/json-ptr";
export * as G from "https://deno.land/x/graphql_deno@v15.0.0/mod.ts";
export * as R from "https://deno.land/x/ramda@v0.27.2/mod.ts";
export type { OpenAPIV3 } from "https://raw.githubusercontent.com/kogosoftwarellc/open-api/master/packages/openapi-types/in... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-9307/.case1/input/entry.ts | TypeScript | import { parse } from "https://deno.land/std@0.80.0/flags/mod.ts";
import { Args, main } from "./src/mod.ts";
import { loadFile } from "./src/utils/deno.loadFile.ts";
const args = parse(Deno.args, {
default: {
outputDir: `./`,
},
});
await main(args as Args, { loadFile, writeTextFile: Deno.writeTextF... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-9307/.case1/input/src/graphql/interfaceExtension.ts | TypeScript | import { G } from "../../deps.ts";
const nameKind = (value: string): G.NameNode => ({
kind: G.Kind.NAME,
value,
});
const namedTypeKind = (value: string): G.NamedTypeNode => ({
kind: G.Kind.NAMED_TYPE,
name: nameKind(value),
});
const fieldToAST = (
// deno-lint-ignore no-explicit-any
field: ... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-9307/.case1/input/src/graphql/mergeObjects.ts | TypeScript | import { G, R } from "../../deps.ts";
import { stringify } from "../log.ts";
import { GQLFieldConfig, GQLFieldMap, GQLObject } from "../types.d.ts";
const isGQLObject = (obj: G.GraphQLType): obj is GQLObject =>
G.isInputObjectType(obj) || G.isObjectType(obj);
const mergeDescriptions = (
descriptions: Array<st... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-9307/.case1/input/src/graphql/validName test.ts | TypeScript | import { assertEquals } from "https://deno.land/std@0.80.0/testing/asserts.ts";
import { toValidGraphQLName } from "./validName.ts";
Deno.test({
name: `"toValidGraphQLName" should leave valid GraphQL name without change`,
fn() {
[`foo`, `_foo`, `FooBar`, `Foo9`, `foo__9__bar`].forEach((validName) =>
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-9307/.case1/input/src/graphql/validName.ts | TypeScript | export const isValidGraphQLName = RegExp.prototype.test.bind(/^[A-Za-z_]\w*$/);
const invalidTokensRe = /^[^A-Za-z_]|\W+(.)?/g;
export const toValidGraphQLName = (name: string): string =>
name.replace(
invalidTokensRe,
(_match, charAfter) => charAfter?.toUpperCase() || ``
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-9307/.case1/input/src/log.ts | TypeScript | export * as color from "https://deno.land/std@0.80.0/fmt/colors.ts";
export { stringify } from "https://raw.githubusercontent.com/czabaj/stringify-replacers/main/mod.ts";
// deno-lint-ignore no-explicit-any
export const log = (...args: any[]) => console.log(...args);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-9307/.case1/input/src/mod.ts | TypeScript | import { join } from "https://deno.land/std@0.80.0/path/mod.ts";
import { G, OpenAPIV3 } from "../deps.ts";
import { color, log, stringify } from "./log.ts";
import { refine } from "./refine.ts";
import { printEnums } from "./typeScript/enumPrinter.ts";
import { ApiArtifacts, Enums } from "./types.d.ts";
export type ... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-9307/.case1/input/src/openApiToGraphQL/index.test.ts | TypeScript | import { Spy, spy } from "https://deno.land/x/mock@v0.9.4/mod.ts";
import {
assertEquals,
assertNotStrictEquals,
assertThrows,
} from "https://deno.land/std@0.80.0/testing/asserts.ts";
import { OpenAPIV3, R } from "../../deps.ts";
import { HttpMethod } from "../types.d.ts";
import { Context, DistillationHo... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-9307/.case1/input/src/openApiToGraphQL/index.ts | TypeScript | import { G, OpenAPIV3, R } from "../../deps.ts";
import {
InterfaceExtension,
interfaceExtensionFactory,
} from "../graphql/interfaceExtension.ts";
import { mergeObjects } from "../graphql/mergeObjects.ts";
import {
isValidGraphQLName,
toValidGraphQLName,
} from "../graphql/validName.ts";
import { strin... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-9307/.case1/input/src/openApiToGraphQL/utils.test.ts | TypeScript | import { Spy, spy } from "https://deno.land/x/mock@v0.9.4/mod.ts";
import {
assertEquals,
assertNotStrictEquals,
} from "https://deno.land/std@0.80.0/testing/asserts.ts";
import { OpenAPIV3 } from "../../deps.ts";
import { loadFile } from "../utils/deno.loadFile.ts";
import { dereference, dereferenceAndDistill... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-9307/.case1/input/src/openApiToGraphQL/utils.ts | TypeScript | import { JsonPointer, OpenAPIV3, R } from "../../deps.ts";
import { isValidGraphQLName } from "../graphql/validName.ts";
import {
HttpMethod,
OpenAPIV3Algebraic,
OpenAPIV3Enum,
OpenAPIV3Object,
OpenAPIV3Scalar,
} from "../types.d.ts";
export const httpMethods: HttpMethod[] = [
`delete`,
`ge... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-9307/.case1/input/src/refine.ts | TypeScript | import { G, R } from "../deps.ts";
import { stringify } from "./log.ts";
import { GraphQLFurnace } from "./openApiToGraphQL/index.ts";
import { isOpenAPIV3Document } from "./openApiToGraphQL/utils.ts";
import { ApiArtifacts, Enums, NonBodyArg, PossibleType } from "./types.d.ts";
import { oasPathParamsToColonParams } fr... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-9307/.case1/input/src/typeScript/enumPrinter.ts | TypeScript | import { Enums } from "../types.d.ts";
import { upperSnakeCase } from "../utils/upperSnakeCase.ts";
const printEnum = (name: string, values: string[]): string =>
`export enum ${name} {
${values.map((v) => ` ${upperSnakeCase(v)} = "${v}",`).join(`\n`)}
}`;
export const printEnums = (enums: Enums): string =>
A... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-9307/.case1/input/src/types.d.ts | TypeScript | import { G, OpenAPIV3 } from "../deps.ts";
type ParentObjectName = string;
type FieldName = string;
type ChildObjectName = string;
type GraphQLInvalidFieldName = string;
export type BodyArg = `body`;
export type NonBodyArg = `cookie` | `header` | `path` | `query`;
export type Enums = Map<string, string[]>;
export t... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-9307/.case1/input/src/utils/deno.loadFile.ts | TypeScript | import * as YAML from "https://deno.land/std@0.80.0/encoding/yaml.ts";
export const loadFile = async <T = Record<string, unknown>>(
path: string
): Promise<T> => {
const fileContent = () => Deno.readTextFile(path);
if (path.endsWith(".json")) {
return JSON.parse(await fileContent());
}
if (... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-9307/.case1/input/src/utils/memoizeByFirstTruthyArg.ts | TypeScript | export const memoizeByTruthyFirstArg = (
cb: (first: any, ...other: any[]) => any
) => {
const cache = new Map<any, any>();
return (first: any, ...other: any[]): any => {
if (!first) return cb(first, ...other);
if (cache.has(first)) return cache.get(first);
const res = cb(first, ...o... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_bundler/tests/deno-exec/deno-9307/.case1/input/src/utils/oasPathParamsToColonParams test.ts | TypeScript | import { assertEquals } from "https://deno.land/std@0.80.0/testing/asserts.ts";
import { oasPathParamsToColonParams } from "./oasPathParamsToColonParams.ts";
Deno.test({
name: `"oasPathParamsToColonParams" should not change url without parameters`,
fn() {
assertEquals(oasPathParamsToColonParams(`/api/... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.