type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
ArrowFunction |
(provider) => { provider.refreshBegin() } | Heat-Ledger-Ltd/heat-ui | app/src/services/AbstractDataProvider.ts | TypeScript |
ArrowFunction |
(data: T) => {
this.isLoading = false;
this.data = data;
this.providers.forEach((provider) => { provider.update(data) });
} | Heat-Ledger-Ltd/heat-ui | app/src/services/AbstractDataProvider.ts | TypeScript |
ArrowFunction |
(provider) => { provider.update(data) } | Heat-Ledger-Ltd/heat-ui | app/src/services/AbstractDataProvider.ts | TypeScript |
ArrowFunction |
() => {
this.loading = false;
this.data = data;
} | Heat-Ledger-Ltd/heat-ui | app/src/services/AbstractDataProvider.ts | TypeScript |
ClassDeclaration | /*
* The MIT License (MIT)
* Copyright (c) 2016 Heat Ledger Ltd.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use... | Heat-Ledger-Ltd/heat-ui | app/src/services/AbstractDataProvider.ts | TypeScript |
ClassDeclaration |
class DataProvider<T> {
public data: T;
public loading: boolean = true;
constructor(private $scope: angular.IScope) {}
public update(data: T) {
this.$scope.$evalAsync(() => {
this.loading = false;
this.data = data;
});
}
public refreshBegin() {
this.loading = true;
this.$sco... | Heat-Ledger-Ltd/heat-ui | app/src/services/AbstractDataProvider.ts | TypeScript |
MethodDeclaration |
public createProvider($scope: angular.IScope) {
var provider = new DataProvider<T>($scope);
provider.data = this.getInitialData();
this.providers.push(provider);
$scope.$on('$destroy', () => { this.destroyProvider(provider) });
if (!this.isLoading) {
provider.update(this.data);
}
retu... | Heat-Ledger-Ltd/heat-ui | app/src/services/AbstractDataProvider.ts | TypeScript |
MethodDeclaration |
private destroyProvider(provider: DataProvider<T>) {
this.providers = this.providers.filter((p) => p != provider);
} | Heat-Ledger-Ltd/heat-ui | app/src/services/AbstractDataProvider.ts | TypeScript |
MethodDeclaration |
abstract getData(): angular.IPromise<T>; | Heat-Ledger-Ltd/heat-ui | app/src/services/AbstractDataProvider.ts | TypeScript |
MethodDeclaration |
abstract getInitialData(): T; | Heat-Ledger-Ltd/heat-ui | app/src/services/AbstractDataProvider.ts | TypeScript |
MethodDeclaration |
protected refresh() {
this.providers.forEach((provider) => { provider.refreshBegin() });
this.isLoading = true;
this.getData().then((data: T) => {
this.isLoading = false;
this.data = data;
this.providers.forEach((provider) => { provider.update(data) });
});
} | Heat-Ledger-Ltd/heat-ui | app/src/services/AbstractDataProvider.ts | TypeScript |
MethodDeclaration |
public update(data: T) {
this.$scope.$evalAsync(() => {
this.loading = false;
this.data = data;
});
} | Heat-Ledger-Ltd/heat-ui | app/src/services/AbstractDataProvider.ts | TypeScript |
MethodDeclaration |
public refreshBegin() {
this.loading = true;
this.$scope.$evalAsync(angular.noop);
} | Heat-Ledger-Ltd/heat-ui | app/src/services/AbstractDataProvider.ts | TypeScript |
ClassDeclaration |
export class Decoder {
private readonly decoder: SafeDecoder;
constructor(ua: ArrayBuffer) {
this.decoder = new SafeDecoder(ua);
}
isNextNil(): bool {
return this.decoder.isNextNil();
}
readBool(): bool {
return this.decoder.readBool().unwrap();
}
readInt8(): i8 {
return this.decode... | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
isNextNil(): bool {
return this.decoder.isNextNil();
} | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readBool(): bool {
return this.decoder.readBool().unwrap();
} | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readInt8(): i8 {
return this.decoder.readInt8().unwrap();
} | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readInt16(): i16 {
return this.decoder.readInt16().unwrap();
} | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readInt32(): i32 {
return this.decoder.readInt32().unwrap();
} | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readInt64(): i64 {
return this.decoder.readInt64().unwrap();
} | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readUInt8(): u8 {
return this.decoder.readUInt8().unwrap();
} | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readUInt16(): u16 {
return this.decoder.readUInt16().unwrap();
} | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readUInt32(): u32 {
return this.decoder.readUInt32().unwrap();
} | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readUInt64(): u64 {
return this.decoder.readUInt64().unwrap();
} | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readFloat32(): f32 {
return this.decoder.readFloat32().unwrap();
} | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readFloat64(): f64 {
return this.decoder.readFloat64().unwrap();
} | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readString(): string {
return this.decoder.readString().unwrap();
} | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readStringLength(): u32 {
return this.decoder.readStringLength().unwrap();
} | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readBinLength(): u32 {
return this.decoder.readBinLength().unwrap();
} | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readByteArray(): ArrayBuffer {
return this.decoder.readByteArray().unwrap();
} | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readArraySize(): u32 {
return this.decoder.readArraySize().unwrap();
} | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readMapSize(): u32 {
return this.decoder.readMapSize().unwrap();
} | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readArray<T>(fn: (decoder: Decoder, i?: u32) => T): Array<T> {
const size = this.readArraySize();
let a = new Array<T>();
for (let i: u32 = 0; i < size; i++) {
const item = fn(this);
a.push(item);
}
return a;
} | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readNullableArray<T>(fn: (decoder: Decoder, i?: u32) => T): Array<T> | null {
if (this.isNextNil()) {
return null;
}
return this.readArray(fn);
} | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readMap<K, V>(keyFn: (decoder: Decoder, i?: u32) => K, valueFn: (decoder: Decoder, i?: u32) => V): Map<K, V> {
const size = this.readMapSize();
let m = new Map<K, V>();
for (let i: u32 = 0; i < size; i++) {
const key = keyFn(this, i);
const value = valueFn(this, i);
m.set(key, value);
... | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readNullableMap<K, V>(keyFn: (decoder: Decoder, i?: u32) => K, valueFn: (decoder: Decoder, i?: u32) => V): Map<K, V> | null {
if (this.isNextNil()) {
return null;
}
return this.readMap(keyFn, valueFn);
} | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
isFloat32(u: u8): bool { return this.decoder.isFloat32(u); } | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
isFloat64(u: u8): bool { return this.decoder.isFloat64(u); } | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
isFixedInt(u: u8): bool { return this.decoder.isFixedInt(u); } | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
isNegativeFixedInt(u: u8): bool { return this.decoder.isNegativeFixedInt(u); } | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
isFixedMap(u: u8): bool { return this.decoder.isFixedMap(u); } | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
isFixedArray(u: u8): bool { return this.decoder.isFixedArray(u); } | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
isFixedString(u: u8): bool { return this.decoder.isFixedString(u); } | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
isNil(u: u8): bool { return this.decoder.isNil(u); } | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
getSize(): u32 { return this.decoder.getSize(); } | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
skip(): void { this.decoder.skip(); } | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
isNextNil(): bool {
if (this.reader.peekUint8() == Format.NIL) {
this.reader.discard(1);
return true;
}
return false;
} | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readBool(): Result<bool> {
const value = this.reader.getUint8();
if (value == Format.TRUE) {
return Result.ok<bool>(true);
} else if (value == Format.FALSE) {
return Result.ok<bool>(false);
}
return Result.err<bool>(new Error("bad value for bool: value = 0x" + value.toString(16) + "; ty... | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readInt8(): Result<i8> {
const result = this.readInt64()
if (result.isErr) {
return Result.err<i8>(result.unwrapErr());
}
const value = result.unwrap();
if (value <= <i64>i8.MAX_VALUE && value >= <i64>i8.MIN_VALUE) {
return Result.ok<i8>(<i8>value);
}
return Result.err<i8>(new ... | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readInt16(): Result<i16> {
const result = this.readInt64()
if (result.isErr) {
return Result.err<i16>(result.unwrapErr());
}
const value = result.unwrap();
if (value <= <i64>i16.MAX_VALUE && value >= <i64>i16.MIN_VALUE) {
return Result.ok<i16>(<i16>value);
}
return Result.err<i... | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readInt32(): Result<i32> {
const result = this.readInt64()
if (result.isErr) {
return Result.err<i32>(result.unwrapErr());
}
const value = result.unwrap();
if (value <= <i64>i32.MAX_VALUE && value >= <i64>i32.MIN_VALUE) {
return Result.ok<i32>(<i32>value);
}
return Result.err<i... | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readInt64(): Result<i64> {
const prefix = this.reader.getUint8();
if (this.isFixedInt(prefix)) {
return Result.ok<i64>(<i64>prefix);
}
if (this.isNegativeFixedInt(prefix)) {
return Result.ok<i64>(<i64>(<i8>prefix));
}
switch (prefix) {
case Format.INT8:
return Result.... | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readUInt8(): Result<u8> {
const result = this.readUInt64()
if (result.isErr) {
return Result.err<u8>(result.unwrapErr());
}
const value = result.unwrap();
if (value <= <u64>u8.MAX_VALUE) {
return Result.ok<u8>(<u8>value);
}
return Result.err<u8>(new Error(
"unsigned integ... | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readUInt16(): Result<u16> {
const result = this.readUInt64()
if (result.isErr) {
return Result.err<u16>(result.unwrapErr());
}
const value = result.unwrap();
if (value <= <u64>u16.MAX_VALUE) {
return Result.ok<u16>(<u16>value);
}
return Result.err<u16>(new Error(
"unsigne... | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readUInt32(): Result<u32> {
const result = this.readUInt64()
if (result.isErr) {
return Result.err<u32>(result.unwrapErr());
}
const value = result.unwrap();
if (value <= <u64>u32.MAX_VALUE) {
return Result.ok<u32>(<u32>value);
}
return Result.err<u32>(new Error(
"unsigne... | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readUInt64(): Result<u64> {
const prefix = this.reader.getUint8();
if (this.isFixedInt(prefix)) {
return Result.ok<u64>(<u64>prefix);
} else if (this.isNegativeFixedInt(prefix)) {
return Result.err<u64>(new Error("bad prefix for unsigned int: prefix = 0x" + prefix.toString(16) + "; type = " + ... | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readFloat32(): Result<f32> {
const prefix = this.reader.getUint8();
if (this.isFloat32(prefix)) {
return Result.ok<f32>(<f32>this.reader.getFloat32());
} else if (this.isFloat64(prefix)) {
const value = this.reader.getFloat64();
const diff = <f64>f32.MAX_VALUE - value;
if (abs(diff... | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readFloat64(): Result<f64> {
const prefix = this.reader.getUint8();
if (this.isFloat64(prefix)) {
return Result.ok<f64>(<f64>this.reader.getFloat64());
} else if (this.isFloat32(prefix)) {
return Result.ok<f64>(<f64>this.reader.getFloat32());
} else {
return Result.err<f64>(new Error(... | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readString(): Result<string> {
const result = this.readStringLength();
if (result.isErr) {
return Result.err<string>(result.unwrapErr());
}
const strLen = result.unwrap();
const stringBytes = this.reader.getBytes(strLen);
return Result.ok<string>(String.UTF8.decode(stringBytes));
} | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readStringLength(): Result<u32> {
const leadByte = this.reader.getUint8();
if (this.isFixedString(leadByte)) {
return Result.ok<u32>(leadByte & 0x1f);
}
if (this.isFixedArray(leadByte)) {
return Result.ok<u32>(<u32>(leadByte & Format.FOUR_LEAST_SIG_BITS_IN_BYTE));
}
switch (leadByte... | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readBinLength(): Result<u32> {
if (this.isNextNil()) {
return Result.ok<u32>(0);
}
const leadByte = this.reader.getUint8();
if (this.isFixedArray(leadByte)) {
return Result.ok<u32>(<u32>(leadByte & Format.FOUR_LEAST_SIG_BITS_IN_BYTE));
}
switch (leadByte) {
case Format.BIN8:
... | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readByteArray(): Result<ArrayBuffer> {
const result = this.readBinLength();
if (result.isErr) {
return Result.err<ArrayBuffer>(result.unwrapErr());
}
const arrLength = result.unwrap();
const arrBytes = this.reader.getBytes(arrLength);
return Result.ok<ArrayBuffer>(arrBytes);
} | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readArraySize(): Result<u32> {
const leadByte = this.reader.getUint8();
if (this.isFixedArray(leadByte)) {
return Result.ok<u32>(<u32>(leadByte & Format.FOUR_LEAST_SIG_BITS_IN_BYTE));
} else if (leadByte == Format.ARRAY16) {
return Result.ok<u32>(<u32>this.reader.getUint16());
} else if (le... | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readMapSize(): Result<u32> {
const leadByte = this.reader.getUint8();
if (this.isFixedMap(leadByte)) {
return Result.ok<u32>(<u32>(leadByte & Format.FOUR_LEAST_SIG_BITS_IN_BYTE));
} else if (leadByte == Format.MAP16) {
return Result.ok<u32>(<u32>this.reader.getUint16());
} else if (leadByte... | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
isFloat32(u: u8): bool {
return u == Format.FLOAT32;
} | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
isFloat64(u: u8): bool {
return u == Format.FLOAT64;
} | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
isFixedInt(u: u8): bool {
return u >> 7 == 0;
} | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
isNegativeFixedInt(u: u8): bool {
return (u & 0xe0) == Format.NEGATIVE_FIXINT;
} | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
isFixedMap(u: u8): bool {
return (u & 0xf0) == Format.FIXMAP;
} | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
isFixedArray(u: u8): bool {
return (u & 0xf0) == Format.FIXARRAY;
} | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
isFixedString(u: u8): bool {
return (u & 0xe0) == Format.FIXSTR;
} | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
isNil(u: u8): bool {
return u == Format.NIL;
} | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
skip(): void {
// getSize handles discarding 'msgpack header' info
let numberOfObjectsToDiscard = this.getSize();
while (numberOfObjectsToDiscard > 0) {
this.skip(); // discard next object
numberOfObjectsToDiscard--;
}
} | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
getSize(): i32 {
const leadByte = this.reader.getUint8(); // will discard one
let objectsToDiscard = <i32>0;
// Handled for fixed values
if (this.isNegativeFixedInt(leadByte)) {
// noop, will just discard the leadbyte
} else if (this.isFixedInt(leadByte)) {
// noop, will just discard th... | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readArray<T>(fn: (decoder: SafeDecoder, i?: u32) => Result<T>): Result<Array<T>> {
const result = this.readArraySize();
if (result.isErr) {
return Result.err<Array<T>>(result.unwrapErr());
}
const size = result.unwrap();
let a = new Array<T>();
for (let i: u32 = 0; i < size; i++) {
... | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readNullableArray<T>(fn: (decoder: SafeDecoder, i?: u32) => Result<T>): Result<Array<T> | null> {
if (this.isNextNil()) {
return Result.ok<Array<T> | null>(null);
}
const result = this.readArray(fn);
if (result.isOk) {
return Result.ok<Array<T> | null>(result.unwrap());
} else {
... | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readMap<K, V>(
keyFn: (decoder: SafeDecoder, i?: u32) => Result<K>,
valueFn: (decoder: SafeDecoder, i?: u32) => Result<V>
): Result<Map<K, V>> {
const result = this.readMapSize();
if (result.isErr) {
return Result.err<Map<K, V>>(result.unwrapErr());
}
const size = result.unwrap();
... | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
MethodDeclaration |
readNullableMap<K, V>(
keyFn: (decoder: SafeDecoder, i?: u32) => Result<K>,
valueFn: (decoder: SafeDecoder, i?: u32) => Result<V>
): Result<Map<K, V> | null> {
if (this.isNextNil()) {
return Result.ok<Map<K, V> | null>(null);
}
const result = this.readMap(keyFn, valueFn);
if (result.is... | Shopify/as-msgpack | assembly/decoder.ts | TypeScript |
FunctionDeclaration | // function must flip integer numbers
// O(n)
function reverseInteger(integer: number): number {
const reversedInt = Number(
integer.toString().replace('-', '').split('').reverse().join('')
);
return Math.sign(integer) * reversedInt;
} | FairlyTales/Algorithms_in_JavaScript | string_manipulation_algorithms/reverseInteger.ts | TypeScript |
ClassDeclaration |
@Injectable({
providedIn: 'root'
})
export class ProveedorService {
private url:string;
constructor(private http: HttpClient)
{
this.url = "https://demo.evdapps.com/api/proveedor";
}
getData(): Observable<Proveedor[]> {
return this.http.get<Proveedor[]>(this.url);
}
} | javc16/MWSFrontEnd | src/app/Servicios/Proveedor/proveedor.service.ts | TypeScript |
MethodDeclaration |
getData(): Observable<Proveedor[]> {
return this.http.get<Proveedor[]>(this.url);
} | javc16/MWSFrontEnd | src/app/Servicios/Proveedor/proveedor.service.ts | TypeScript |
FunctionDeclaration |
export function RadioGroup(props: RadioGroupProps) {
return (
<StyledRadioGroup className={props.className}>
<label htmlFor={props.id}>{props.label}</label>
<div>{props.children}</div>
</StyledRadioGroup>
);
} | syslaudo/syslaudo-frontend | src/components/FormComponents/RadioGroup/index.tsx | TypeScript |
InterfaceDeclaration |
interface RadioGroupProps extends React.LabelHTMLAttributes<HTMLLabelElement> {
label: string;
} | syslaudo/syslaudo-frontend | src/components/FormComponents/RadioGroup/index.tsx | TypeScript |
ClassDeclaration | /**
* Represents a bb-code.
*/
export class BBCode
{
/**
* The name of the bb-code.
*/
private name: string;
/**
* The human-readable name of the bb-code.
*/
private displayName: Localization = new Localization();
/**
* The name of a font-awesome icon for the bb-code-but... | manuth/WoltLabCompiler | src/Customization/BBCodes/BBCode.ts | TypeScript |
FunctionDeclaration | /**
* Returns the AvailabilityPercentage for NodeAtomic nodes
* @param {string} guildName
* @param {string} endpointUrl
* @return {Promise<unknown>}
*/
export async function getAvailabilityNodeAtomic(guildName: string, endpointUrl: string): Promise<unknown> {
const param = [guildName, endpointUrl];
const enti... | Blacklusion/validationcore-api | src/datasources/postgres/queries/availability/getAvailabilityNodeAtomic.ts | TypeScript |
FunctionDeclaration |
function levelsToQuery(levels: string[]): string {
return levels
.sort()
.map((key) => key.toLowerCase())
.join(DELIMITER);
} | Kapernikov/dagster | js_modules/dagit/packages/core/src/runs/useQueryPersistedLogFilter.ts | TypeScript |
FunctionDeclaration |
export function encodeRunPageFilters(filter: LogFilter) {
const logQueryTokenStrings = filter.logQuery.map((v) =>
v.token ? `${v.token}:${v.value}` : v.value,
);
return {
hideNonMatches: filter.hideNonMatches ? 'true' : 'false',
focusedTime: filter.focusedTime || '',
logs: logQueryTokenStrings.j... | Kapernikov/dagster | js_modules/dagit/packages/core/src/runs/useQueryPersistedLogFilter.ts | TypeScript |
FunctionDeclaration |
export function useQueryPersistedLogFilter() {
return useQueryPersistedState<LogFilter>({
encode: encodeRunPageFilters,
decode: decodeRunPageFilters,
defaults: DefaultQuerystring,
});
} | Kapernikov/dagster | js_modules/dagit/packages/core/src/runs/useQueryPersistedLogFilter.ts | TypeScript |
ArrowFunction |
(key) => key.toLowerCase() | Kapernikov/dagster | js_modules/dagit/packages/core/src/runs/useQueryPersistedLogFilter.ts | TypeScript |
ArrowFunction |
(qs: {[key: string]: string}) => {
const logValues = qs['logs'].split(DELIMITER);
const focusedTime = qs['focusedTime'] && !qs['logs'] ? Number(qs['focusedTime']) : null;
const hideNonMatches = qs['hideNonMatches'] === 'true' ? true : false;
const providers = getRunFilterProviders();
const logQuery = logVal... | Kapernikov/dagster | js_modules/dagit/packages/core/src/runs/useQueryPersistedLogFilter.ts | TypeScript |
ArrowFunction |
(token) => tokenizedValueFromString(token, providers) | Kapernikov/dagster | js_modules/dagit/packages/core/src/runs/useQueryPersistedLogFilter.ts | TypeScript |
ArrowFunction |
(level) => level.toUpperCase() | Kapernikov/dagster | js_modules/dagit/packages/core/src/runs/useQueryPersistedLogFilter.ts | TypeScript |
ArrowFunction |
(level) => LogLevel.hasOwnProperty(level) | Kapernikov/dagster | js_modules/dagit/packages/core/src/runs/useQueryPersistedLogFilter.ts | TypeScript |
ArrowFunction |
(accum, level) => ({...accum, [level]: true}) | Kapernikov/dagster | js_modules/dagit/packages/core/src/runs/useQueryPersistedLogFilter.ts | TypeScript |
ArrowFunction |
(v) =>
v.token ? `${v.token}:${v.value}` : v.value | Kapernikov/dagster | js_modules/dagit/packages/core/src/runs/useQueryPersistedLogFilter.ts | TypeScript |
ArrowFunction |
(key) => !!filter.levels[key] | Kapernikov/dagster | js_modules/dagit/packages/core/src/runs/useQueryPersistedLogFilter.ts | TypeScript |
ArrowFunction |
() => {
let component: ImagesComponent;
let fixture: ComponentFixture<ImagesComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ImagesComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ImagesComponent);
... | Dima2022/DiscountsApp | SCNDISC.FrontEnd/SCNDISC.Admin.UI/src/app/partner/components/images/images.component.spec.ts | TypeScript |
ArrowFunction |
() => {
TestBed.configureTestingModule({
declarations: [ ImagesComponent ]
})
.compileComponents();
} | Dima2022/DiscountsApp | SCNDISC.FrontEnd/SCNDISC.Admin.UI/src/app/partner/components/images/images.component.spec.ts | TypeScript |
ArrowFunction |
() => {
fixture = TestBed.createComponent(ImagesComponent);
component = fixture.componentInstance;
fixture.detectChanges();
} | Dima2022/DiscountsApp | SCNDISC.FrontEnd/SCNDISC.Admin.UI/src/app/partner/components/images/images.component.spec.ts | TypeScript |
ClassDeclaration |
export declare class ListOpsItemEventsCommand extends $Command<ListOpsItemEventsCommandInput, ListOpsItemEventsCommandOutput, SSMClientResolvedConfig> {
readonly input: ListOpsItemEventsCommandInput;
constructor(input: ListOpsItemEventsCommandInput);
resolveMiddleware(clientStack: MiddlewareStack<... | dwardu89/aws-ssm-parameter-store | node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListOpsItemEventsCommand.d.ts | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.