type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
ArrowFunction |
() => {
testObject.$getChildren('testNodeTreeProvider')
.then(elements => {
assert.deepEqual(elements.map(e => e.handle), ['0/0:c']);
done();
});
} | CRAZYCUPCAKES40/vscode | src/vs/workbench/test/electron-browser/api/extHostTreeViews.test.ts | TypeScript |
ArrowFunction |
elements => {
assert.deepEqual(elements.map(e => e.handle), ['0/0:c']);
done();
} | CRAZYCUPCAKES40/vscode | src/vs/workbench/test/electron-browser/api/extHostTreeViews.test.ts | TypeScript |
ArrowFunction |
() => {
tree = {
'c': {}
};
return testObject.$getChildren('testNodeTreeProvider')
.then(elements => {
assert.deepEqual(elements.map(e => e.handle), ['0/0:a', '0/0:b']);
});
} | CRAZYCUPCAKES40/vscode | src/vs/workbench/test/electron-browser/api/extHostTreeViews.test.ts | TypeScript |
ArrowFunction |
elements => {
assert.deepEqual(elements.map(e => e.handle), ['0/0:a', '0/0:b']);
} | CRAZYCUPCAKES40/vscode | src/vs/workbench/test/electron-browser/api/extHostTreeViews.test.ts | TypeScript |
ArrowFunction |
() => {
const treeView = testObject.registerTreeDataProvider('treeDataProvider', aNodeTreeDataProvider(), (fn) => fn);
return treeView.reveal({ key: 'a' })
.then(() => assert.fail('Reveal should throw an error as getParent is not implemented'), () => null);
} | CRAZYCUPCAKES40/vscode | src/vs/workbench/test/electron-browser/api/extHostTreeViews.test.ts | TypeScript |
ArrowFunction |
() => assert.fail('Reveal should throw an error as getParent is not implemented') | CRAZYCUPCAKES40/vscode | src/vs/workbench/test/electron-browser/api/extHostTreeViews.test.ts | TypeScript |
ArrowFunction |
() => {
const revealTarget = sinon.spy(target, '$reveal');
const treeView = testObject.registerTreeDataProvider('treeDataProvider', aCompleteNodeTreeDataProvider(), (fn) => fn);
return treeView.reveal({ key: 'a' })
.then(() => {
assert.ok(revealTarget.calledOnce);
assert.deepEqual('treeDataProvider', ... | CRAZYCUPCAKES40/vscode | src/vs/workbench/test/electron-browser/api/extHostTreeViews.test.ts | TypeScript |
ArrowFunction |
() => {
assert.ok(revealTarget.calledOnce);
assert.deepEqual('treeDataProvider', revealTarget.args[0][0]);
assert.deepEqual({ handle: '0/0:a', label: 'a', collapsibleState: TreeItemCollapsibleState.Collapsed }, removeUnsetKeys(revealTarget.args[0][1]));
assert.deepEqual([], revealTarget.args[0][2]);
... | CRAZYCUPCAKES40/vscode | src/vs/workbench/test/electron-browser/api/extHostTreeViews.test.ts | TypeScript |
ArrowFunction |
() => {
const revealTarget = sinon.spy(target, '$reveal');
const treeView = testObject.registerTreeDataProvider('treeDataProvider', aCompleteNodeTreeDataProvider(), (fn) => fn);
return treeView.reveal({ key: 'aa' })
.then(() => {
assert.ok(revealTarget.calledOnce);
assert.deepEqual('treeDataProvider',... | CRAZYCUPCAKES40/vscode | src/vs/workbench/test/electron-browser/api/extHostTreeViews.test.ts | TypeScript |
ArrowFunction |
() => {
assert.ok(revealTarget.calledOnce);
assert.deepEqual('treeDataProvider', revealTarget.args[0][0]);
assert.deepEqual({ handle: '0/0:a/0:aa', label: 'aa', collapsibleState: TreeItemCollapsibleState.None, parentHandle: '0/0:a' }, removeUnsetKeys(revealTarget.args[0][1]));
assert.deepEqual([{ handl... | CRAZYCUPCAKES40/vscode | src/vs/workbench/test/electron-browser/api/extHostTreeViews.test.ts | TypeScript |
ArrowFunction |
arg => removeUnsetKeys(arg) | CRAZYCUPCAKES40/vscode | src/vs/workbench/test/electron-browser/api/extHostTreeViews.test.ts | TypeScript |
ArrowFunction |
() => {
tree = {
'b': {
'ba': {
'bac': {}
}
}
};
const revealTarget = sinon.spy(target, '$reveal');
const treeView = testObject.registerTreeDataProvider('treeDataProvider', aCompleteNodeTreeDataProvider(), (fn) => fn);
return treeView.reveal({ key: 'bac' }, { select: false })
.then(() =... | CRAZYCUPCAKES40/vscode | src/vs/workbench/test/electron-browser/api/extHostTreeViews.test.ts | TypeScript |
ArrowFunction |
() => {
assert.ok(revealTarget.calledOnce);
assert.deepEqual('treeDataProvider', revealTarget.args[0][0]);
assert.deepEqual({ handle: '0/0:b/0:ba/0:bac', label: 'bac', collapsibleState: TreeItemCollapsibleState.None, parentHandle: '0/0:b/0:ba' }, removeUnsetKeys(revealTarget.args[0][1]));
assert.deepEq... | CRAZYCUPCAKES40/vscode | src/vs/workbench/test/electron-browser/api/extHostTreeViews.test.ts | TypeScript |
ArrowFunction |
(element: { key: string }): { key: string }[] => {
return getChildren(element ? element.key : undefined).map(key => getNode(key));
} | CRAZYCUPCAKES40/vscode | src/vs/workbench/test/electron-browser/api/extHostTreeViews.test.ts | TypeScript |
ArrowFunction |
key => getNode(key) | CRAZYCUPCAKES40/vscode | src/vs/workbench/test/electron-browser/api/extHostTreeViews.test.ts | TypeScript |
ArrowFunction |
(element: { key: string }): TreeItem => {
return getTreeItem(element.key);
} | CRAZYCUPCAKES40/vscode | src/vs/workbench/test/electron-browser/api/extHostTreeViews.test.ts | TypeScript |
ArrowFunction |
({ key }: { key: string }): { key: string } => {
const parentKey = key.substring(0, key.length - 1);
return parentKey ? new Key(parentKey) : void 0;
} | CRAZYCUPCAKES40/vscode | src/vs/workbench/test/electron-browser/api/extHostTreeViews.test.ts | TypeScript |
ArrowFunction |
(element: { key: string }): TreeItem => {
const treeItem = getTreeItem(element.key);
treeItem.id = element.key;
return treeItem;
} | CRAZYCUPCAKES40/vscode | src/vs/workbench/test/electron-browser/api/extHostTreeViews.test.ts | TypeScript |
ClassDeclaration |
class RecordingShape extends mock<MainThreadTreeViewsShape>() {
onRefresh = new Emitter<{ [treeItemHandle: string]: ITreeItem }>();
$registerTreeViewDataProvider(treeViewId: string): void {
}
$refresh(viewId: string, itemsToRefresh?: { [treeItemHandle: string]: ITreeItem }): void {
this.onRefresh.fire(it... | CRAZYCUPCAKES40/vscode | src/vs/workbench/test/electron-browser/api/extHostTreeViews.test.ts | TypeScript |
ClassDeclaration |
class Key {
constructor(readonly key: string) { }
} | CRAZYCUPCAKES40/vscode | src/vs/workbench/test/electron-browser/api/extHostTreeViews.test.ts | TypeScript |
MethodDeclaration |
$registerTreeViewDataProvider(treeViewId: string): void {
} | CRAZYCUPCAKES40/vscode | src/vs/workbench/test/electron-browser/api/extHostTreeViews.test.ts | TypeScript |
MethodDeclaration |
$refresh(viewId: string, itemsToRefresh?: { [treeItemHandle: string]: ITreeItem }): void {
this.onRefresh.fire(itemsToRefresh);
} | CRAZYCUPCAKES40/vscode | src/vs/workbench/test/electron-browser/api/extHostTreeViews.test.ts | TypeScript |
MethodDeclaration |
$reveal(): TPromise<void> {
return null;
} | CRAZYCUPCAKES40/vscode | src/vs/workbench/test/electron-browser/api/extHostTreeViews.test.ts | TypeScript |
TypeAliasDeclaration |
export type FilterType = keyof typeof FILTER_OPERATOR_MAP; | vbisrikkanth/easydmfollowers | src/types.d.ts | TypeScript |
TypeAliasDeclaration |
export type FilterCondition = {
id: string;
value: string | number | boolean;
operator: FilterType;
} | vbisrikkanth/easydmfollowers | src/types.d.ts | TypeScript |
TypeAliasDeclaration |
export type Filter = {
filterType: FilterType;
conditions: FilterCondition[];
} | vbisrikkanth/easydmfollowers | src/types.d.ts | TypeScript |
TypeAliasDeclaration |
export type PaginationOptions = {
where?: any;
order?: string[][];
limit?: number;
offset: number;
} | vbisrikkanth/easydmfollowers | src/types.d.ts | TypeScript |
TypeAliasDeclaration |
export type UserPaginationOptions = PaginationOptions & { segmentIds: number[] } | vbisrikkanth/easydmfollowers | src/types.d.ts | TypeScript |
TypeAliasDeclaration |
export type CampaignUserPaginationOptions = PaginationOptions & { id: number } | vbisrikkanth/easydmfollowers | src/types.d.ts | TypeScript |
TypeAliasDeclaration |
export type CampaignUserPaginationResult = {
rows: (UserAttributes & CampaignUserAttributes)[];
count: number;
} | vbisrikkanth/easydmfollowers | src/types.d.ts | TypeScript |
TypeAliasDeclaration |
export type PaginatedUserResult = {
rows: UserAttributes[];
count: number;
} | vbisrikkanth/easydmfollowers | src/types.d.ts | TypeScript |
TypeAliasDeclaration |
export type TwitterKeys = {
consumer_key: string,
consumer_secret: string,
access_token_key: string,
access_token_secret: string
} | vbisrikkanth/easydmfollowers | src/types.d.ts | TypeScript |
TypeAliasDeclaration |
export type CampaignUpdateAttributes = {
name?: string;
message?: string;
description?: string;
allocated_msg_count?: number;
scheduled_time?: number;
status?: number;
} | vbisrikkanth/easydmfollowers | src/types.d.ts | TypeScript |
TypeAliasDeclaration |
export type SegmentUpdateAttributes = {
name?: string;
description?: string;
filters?: Filter;
} | vbisrikkanth/easydmfollowers | src/types.d.ts | TypeScript |
TypeAliasDeclaration |
export type CampaignCreateAttribute = {
name: string;
message: string;
description: string;
allocated_msg_count: number;
scheduled_time: number;
segmentIds: number[];
order?: string[][];
} | vbisrikkanth/easydmfollowers | src/types.d.ts | TypeScript |
ArrowFunction |
tpsData => {
tpsData.autofill = tpsData.autofill || {};
if (this.kpuData) {
const data = this.kpuData[this.tpsNo];
if (data) {
const prefix = FORM_TYPE.PPWP + ';' + IS_PLANO.NO;
tpsData.autofill[`${prefix};1;kpu`] = {
[SUM_KEY.jum]: data[SUM_KEY... | kawalpemilu/upload.kawalpemilu.org | web/src/app/approver/approver.component.ts | TypeScript |
ArrowFunction |
(a, b) => {
const x = imgs[a];
const y = imgs[b];
if (x.meta && x.meta.m && y.meta && y.meta.m) {
const p = x.meta.m[0];
const q = y.meta.m[0];
return p < q ? -1 : p > q ? 1 : 0;
}
return x.uploader.ts - y.uploader.ts;
} | kawalpemilu/upload.kawalpemilu.org | web/src/app/approver/approver.component.ts | TypeScript |
ArrowFunction |
() => {
this.hie.update(this.initialKelId).then(() => {
setTimeout(() => {
this.imageId = '';
this.imageIdChange.emit('');
this.completed.next();
}, 100);
});
} | kawalpemilu/upload.kawalpemilu.org | web/src/app/approver/approver.component.ts | TypeScript |
ArrowFunction |
() => {
setTimeout(() => {
this.imageId = '';
this.imageIdChange.emit('');
this.completed.next();
}, 100);
} | kawalpemilu/upload.kawalpemilu.org | web/src/app/approver/approver.component.ts | TypeScript |
ArrowFunction |
() => {
this.imageId = '';
this.imageIdChange.emit('');
this.completed.next();
} | kawalpemilu/upload.kawalpemilu.org | web/src/app/approver/approver.component.ts | TypeScript |
ArrowFunction |
(v: number[]) => {
this.formGroup.get(SUM_KEY[SUM_KEY.sah]).setValue(v[0] + v[1]);
} | kawalpemilu/upload.kawalpemilu.org | web/src/app/approver/approver.component.ts | TypeScript |
ArrowFunction |
() => {
const inp: HTMLInputElement = document.querySelector('form input');
if (inp) {
inp.focus();
}
} | kawalpemilu/upload.kawalpemilu.org | web/src/app/approver/approver.component.ts | TypeScript |
ArrowFunction |
(a, b) => this.toInt(a) - this.toInt(b) | kawalpemilu/upload.kawalpemilu.org | web/src/app/approver/approver.component.ts | TypeScript |
ArrowFunction |
() => {
const els = document.getElementsByClassName('searchwilayah');
if (els.length > 0) {
(els[0] as HTMLInputElement).focus();
}
} | kawalpemilu/upload.kawalpemilu.org | web/src/app/approver/approver.component.ts | TypeScript |
ArrowFunction |
node => {
this.kelName = node.name;
this.isChangeKel = false;
} | kawalpemilu/upload.kawalpemilu.org | web/src/app/approver/approver.component.ts | TypeScript |
MethodDeclaration |
async ngOnInit() {
this.initialKelId = this.kelId;
this.initialTpsNo = this.tpsNo;
this.kpuData = await this.fsdb
.doc<KpuData>(FsPath.kpu(this.kelId))
.valueChanges()
.pipe(
this.perf.trace('kpuData'),
take(1)
)
.toPromise();
this.fsdb
.doc<TpsData... | kawalpemilu/upload.kawalpemilu.org | web/src/app/approver/approver.component.ts | TypeScript |
MethodDeclaration |
setExistingTipe(i: TpsImage) {
if (i.c1 && i.c1.type && i.c1.plano && i.c1.halaman) {
// @ts-ignore
const tipe = (i.tipe =
i.c1.type + ';' + i.c1.plano + ';' + i.c1.halaman + ';ex');
this.tpsData.autofill[tipe] = i.sum;
}
} | kawalpemilu/upload.kawalpemilu.org | web/src/app/approver/approver.component.ts | TypeScript |
MethodDeclaration |
autofill(i: TpsImage) {
// @ts-ignore
const tipe = i.tipe;
if (tipe) {
const t = tipe.split(';');
this.setFormType(+t[0]);
this.setIsPlano(+t[1]);
this.setHalaman(t[2]);
if (this.tpsData.autofill) {
const sum = this.tpsData.autofill[tipe];
if (sum) {
... | kawalpemilu/upload.kawalpemilu.org | web/src/app/approver/approver.component.ts | TypeScript |
MethodDeclaration |
digitizeNextImage() {
this.kelId = this.initialKelId;
this.tpsNo = this.initialTpsNo;
this.imageId = '';
this.imageIdChange.emit('');
this.formType = null;
this.isPlano = null;
this.halaman = null;
this.formGroup = null;
this.approveStatus = 'pending';
this.tryUnsubscribe();
... | kawalpemilu/upload.kawalpemilu.org | web/src/app/approver/approver.component.ts | TypeScript |
MethodDeclaration |
ngOnDestroy() {
this.tryUnsubscribe();
} | kawalpemilu/upload.kawalpemilu.org | web/src/app/approver/approver.component.ts | TypeScript |
MethodDeclaration |
trySubscribe() {
this.tryUnsubscribe();
const p1 = this.formGroup.get(SUM_KEY[SUM_KEY.pas1]);
const p2 = this.formGroup.get(SUM_KEY[SUM_KEY.pas2]);
if (!p1 || !p2) {
return;
}
this.autoSumSub = combineLatest([
p1.valueChanges.pipe(
startWith(0),
distinctUntilChanged(... | kawalpemilu/upload.kawalpemilu.org | web/src/app/approver/approver.component.ts | TypeScript |
MethodDeclaration |
tryUnsubscribe() {
if (this.autoSumSub) {
this.autoSumSub.unsubscribe();
this.autoSumSub = null;
}
} | kawalpemilu/upload.kawalpemilu.org | web/src/app/approver/approver.component.ts | TypeScript |
MethodDeclaration |
async approve() {
const perf = firebase.performance();
const trace = perf.trace('approve');
trace.start();
this.isLoading = true;
const sum = {} as SumMap;
if (this.formGroup) {
this.formGroup.disable();
for (const key of LEMBAR[this.formType][this.isPlano][this.halaman]) {
... | kawalpemilu/upload.kawalpemilu.org | web/src/app/approver/approver.component.ts | TypeScript |
MethodDeclaration |
skipDulu() {
this.tpsData.images[this.imageId].c1 = {} as C1Form;
this.digitizeNextImage();
} | kawalpemilu/upload.kawalpemilu.org | web/src/app/approver/approver.component.ts | TypeScript |
MethodDeclaration |
setFormType(type: FORM_TYPE) {
this.formType = +type;
this.approveStatus =
this.formType === FORM_TYPE.OTHERS ||
this.formType === FORM_TYPE.PEMANDANGAN ||
this.formType === FORM_TYPE.MALICIOUS
? 'ready'
: 'pending';
this.isPlano = null;
this.halaman = null;
this.f... | kawalpemilu/upload.kawalpemilu.org | web/src/app/approver/approver.component.ts | TypeScript |
MethodDeclaration |
setIsPlano(plano: IS_PLANO) {
this.approveStatus = 'pending';
this.isPlano = plano;
this.halaman = null;
this.formGroup = null;
this.tryUnsubscribe();
} | kawalpemilu/upload.kawalpemilu.org | web/src/app/approver/approver.component.ts | TypeScript |
MethodDeclaration |
setHalaman(hal: Halaman) {
this.halaman = hal;
if (!this.getLembar()) {
this.approveStatus = 'ready';
return;
}
const group = {};
for (const key of this.getLembar()) {
group[key] = [null, this.VALIDATORS];
}
this.formGroup = this.formBuilder.group(group);
this.trySubs... | kawalpemilu/upload.kawalpemilu.org | web/src/app/approver/approver.component.ts | TypeScript |
MethodDeclaration |
getLembar() {
return LEMBAR[this.formType][this.isPlano][this.halaman];
} | kawalpemilu/upload.kawalpemilu.org | web/src/app/approver/approver.component.ts | TypeScript |
MethodDeclaration |
getHalaman() {
const lembar = LEMBAR[this.formType][this.isPlano];
return Object.keys(lembar).sort((a, b) => this.toInt(a) - this.toInt(b));
} | kawalpemilu/upload.kawalpemilu.org | web/src/app/approver/approver.component.ts | TypeScript |
MethodDeclaration |
toInt(s) {
const i = s.indexOf('.');
if (i === -1) {
return +s * 100;
}
return +s.substring(0, i) * 100 + +s.substring(i + 1);
} | kawalpemilu/upload.kawalpemilu.org | web/src/app/approver/approver.component.ts | TypeScript |
MethodDeclaration |
getError(ctrlName: string) {
return this.formGroup.get(ctrlName).hasError('pattern')
? 'Rentang angka 0..999'
: '';
} | kawalpemilu/upload.kawalpemilu.org | web/src/app/approver/approver.component.ts | TypeScript |
MethodDeclaration |
changeKel() {
this.isChangeKel = true;
setTimeout(() => {
const els = document.getElementsByClassName('searchwilayah');
if (els.length > 0) {
(els[0] as HTMLInputElement).focus();
}
}, 100);
} | kawalpemilu/upload.kawalpemilu.org | web/src/app/approver/approver.component.ts | TypeScript |
MethodDeclaration |
changeKelId(state: HierarchyNode) {
this.kelId = state.id;
this.hie
.get$(this.kelId)
.pipe(take(1))
.toPromise()
.then(node => {
this.kelName = node.name;
this.isChangeKel = false;
});
} | kawalpemilu/upload.kawalpemilu.org | web/src/app/approver/approver.component.ts | TypeScript |
ArrowFunction |
response => {
appSettings.setBoolean("isLoggedIn", true);
appSettings.setString("account",JSON.stringify(this.user))
appSettings.setString("username",this.user.username)
this.processing = false;
this.routerExtensions.navigateByUrl("main", {clearHistory: true});
} | AStA-HTWG-Konstanz/app | src/app/signin/signin.component.ts | TypeScript |
ArrowFunction |
error => {
this.error = true;
this.processing = false;
} | AStA-HTWG-Konstanz/app | src/app/signin/signin.component.ts | TypeScript |
ClassDeclaration |
@Component({
selector: 'ns-signin',
templateUrl: './signin.component.html',
styleUrls: ['./signin.component.css'],
moduleId: module.id,
})
export class SigninComponent implements OnInit {
user: User;
processing: boolean = false;
error: boolean = false;
constructor(
private loginservice: LoginServ... | AStA-HTWG-Konstanz/app | src/app/signin/signin.component.ts | TypeScript |
MethodDeclaration |
ngOnInit() {
this.page.actionBarHidden = true;
this.user = new User("","");
} | AStA-HTWG-Konstanz/app | src/app/signin/signin.component.ts | TypeScript |
MethodDeclaration |
onDrawerButtonTap(): void {
const sideDrawer = <RadSideDrawer>app.getRootView();
sideDrawer.showDrawer();
} | AStA-HTWG-Konstanz/app | src/app/signin/signin.component.ts | TypeScript |
MethodDeclaration |
login() {
this.processing = true;
this.error = false;
this.loginservice.login(this.user).subscribe(
response => {
appSettings.setBoolean("isLoggedIn", true);
appSettings.setString("account",JSON.stringify(this.user))
appSettings.setString("username",this.user.username)
... | AStA-HTWG-Konstanz/app | src/app/signin/signin.component.ts | TypeScript |
MethodDeclaration |
onNameChange(args: any) {
let textField = <TextField>args.object;
this.user.username = textField.text;
} | AStA-HTWG-Konstanz/app | src/app/signin/signin.component.ts | TypeScript |
MethodDeclaration |
onPasswordChange(args: any) {
let textField = <TextField>args.object;
this.user.password = textField.text;
} | AStA-HTWG-Konstanz/app | src/app/signin/signin.component.ts | TypeScript |
ClassDeclaration |
export declare class SplitPane implements ComponentInterface {
private rmL;
el: HTMLElement;
visible: boolean;
/**
* The `id` of the main content. When using
* a router this is typically `ion-router-outlet`.
* When not using a router, this is typically
* your main view's `ion-content`. This is not ... | Lassaadaissa/DS_Ionic | node_modules/@ionic/core/dist/types/components/split-pane/split-pane.d.ts | TypeScript |
MethodDeclaration |
visibleChanged(visible: boolean): void; | Lassaadaissa/DS_Ionic | node_modules/@ionic/core/dist/types/components/split-pane/split-pane.d.ts | TypeScript |
MethodDeclaration |
connectedCallback(): void; | Lassaadaissa/DS_Ionic | node_modules/@ionic/core/dist/types/components/split-pane/split-pane.d.ts | TypeScript |
MethodDeclaration |
disconnectedCallback(): void; | Lassaadaissa/DS_Ionic | node_modules/@ionic/core/dist/types/components/split-pane/split-pane.d.ts | TypeScript |
MethodDeclaration |
protected updateState(): void; | Lassaadaissa/DS_Ionic | node_modules/@ionic/core/dist/types/components/split-pane/split-pane.d.ts | TypeScript |
MethodDeclaration |
render(): any; | Lassaadaissa/DS_Ionic | node_modules/@ionic/core/dist/types/components/split-pane/split-pane.d.ts | TypeScript |
ArrowFunction |
() => {
return (<span>加载中...</span>)
} | john2300/sourcecode-learn | ts-wp/src/web/components/loading/index.tsx | TypeScript |
ArrowFunction |
blue_applications => {
this.dataModel.DEVICE_CPU_CORES = blue_applications['value'].map(blue_applications => blue_applications.DEVICE_CPU_CORES);
this.dataModel.AGENT_VERSION = blue_applications['value'].map(blue_applications => blue_applications.AGENT_VERSION);
console.lo... | AternityAbsa/aternity_absa | .history/src/app/layout/charts/charts.component_20180416123932.ts | TypeScript |
ArrowFunction |
blue_applications => blue_applications.DEVICE_CPU_CORES | AternityAbsa/aternity_absa | .history/src/app/layout/charts/charts.component_20180416123932.ts | TypeScript |
ArrowFunction |
blue_applications => blue_applications.AGENT_VERSION | AternityAbsa/aternity_absa | .history/src/app/layout/charts/charts.component_20180416123932.ts | TypeScript |
ArrowFunction |
err => {
console.log(err);
} | AternityAbsa/aternity_absa | .history/src/app/layout/charts/charts.component_20180416123932.ts | TypeScript |
ArrowFunction |
blue_applications => {
this.dataModel.UXI = blue_applications['value'].map(blue_applications => blue_applications.UXI);
this.dataModel.UXI_WEIGHT = blue_applications['value'].map(blue_applications => blue_applications.UXI_WEIGHT);
this.dataModel.CRASHES = blue_applications['value']... | AternityAbsa/aternity_absa | .history/src/app/layout/charts/charts.component_20180416123932.ts | TypeScript |
ArrowFunction |
blue_applications => blue_applications.UXI | AternityAbsa/aternity_absa | .history/src/app/layout/charts/charts.component_20180416123932.ts | TypeScript |
ArrowFunction |
blue_applications => blue_applications.UXI_WEIGHT | AternityAbsa/aternity_absa | .history/src/app/layout/charts/charts.component_20180416123932.ts | TypeScript |
ArrowFunction |
blue_applications => blue_applications.CRASHES | AternityAbsa/aternity_absa | .history/src/app/layout/charts/charts.component_20180416123932.ts | TypeScript |
ArrowFunction |
blue_applications => blue_applications.PERFORMANCE_INDEX | AternityAbsa/aternity_absa | .history/src/app/layout/charts/charts.component_20180416123932.ts | TypeScript |
ArrowFunction |
blue_applications => blue_applications.ACTIVITY_VOLUME | AternityAbsa/aternity_absa | .history/src/app/layout/charts/charts.component_20180416123932.ts | TypeScript |
ArrowFunction |
blue_applications => blue_applications.HANG_TIME | AternityAbsa/aternity_absa | .history/src/app/layout/charts/charts.component_20180416123932.ts | TypeScript |
MethodDeclaration |
ngOnInit(){
/** refresh every 5 seconds
this.interval = setInterval(() => {
this.loadBarChart();
}, 1000); **/
/* this.interval = setInterval(() => {
this.loadDoughnut();
}, 1000);
this.interval = setInterval(()... | AternityAbsa/aternity_absa | .history/src/app/layout/charts/charts.component_20180416123932.ts | TypeScript |
MethodDeclaration |
loadDoughnut(){
this.blueprismService.deviceInventoryData().subscribe(
blue_applications => {
this.dataModel.DEVICE_CPU_CORES = blue_applications['value'].map(blue_applications => blue_applications.DEVICE_CPU_CORES);
this.dataModel.AGENT_VERSION = blue_applications['value']... | AternityAbsa/aternity_absa | .history/src/app/layout/charts/charts.component_20180416123932.ts | TypeScript |
MethodDeclaration |
loadRadar(){
this.blueprismService.applicationRawData().subscribe(
blue_applications => {
this.dataModel.UXI = blue_applications['value'].map(blue_applications => blue_applications.UXI);
this.dataModel.UXI_WEIGHT = blue_applications['value'].map(blue_applications => blue_ap... | AternityAbsa/aternity_absa | .history/src/app/layout/charts/charts.component_20180416123932.ts | TypeScript |
MethodDeclaration | // events
private chartClicked(e: any): void {
if (e.active.length === 0) {
return;
}
let label = e.active[0]._model.label;
this.currentNode = this.currentNode || this.allTheData;
this.currentNode = this.currentNode.drilldown[label];
this.barChartLabels = this.currentNode.labels;
} | AternityAbsa/aternity_absa | .history/src/app/layout/charts/charts.component_20180416123932.ts | TypeScript |
MethodDeclaration |
private chartHovered(e: any): void {
/** console.log(e); */
} | AternityAbsa/aternity_absa | .history/src/app/layout/charts/charts.component_20180416123932.ts | TypeScript |
MethodDeclaration | /*private updateData(event: any){
const data1 = [20, 50, 90];
const clone = JSON.parse(JSON.stringify(this.barChartData));
clone[0].data = data1;
this.barChartData = clone; **/
/* this.selectedValue = event.target.value;
if (this.selectedValue !== null){
const data1 = ... | AternityAbsa/aternity_absa | .history/src/app/layout/charts/charts.component_20180416123932.ts | TypeScript |
ArrowFunction |
() => {
it('defaults to no detectors', async () => {
const deviceSupport = new DeviceSupport();
assert.deepEqual(await deviceSupport.detect(), {});
});
it('supports adding detectors', async () => {
const deviceSupport = new DeviceSupport();
deviceSupport.addDetector({name: 'foo', supported: asyn... | GoogleChromeLabs/perception-toolk | src/support/device-support_test.ts | TypeScript |
ArrowFunction |
async () => {
const deviceSupport = new DeviceSupport();
assert.deepEqual(await deviceSupport.detect(), {});
} | GoogleChromeLabs/perception-toolk | src/support/device-support_test.ts | TypeScript |
ArrowFunction |
async () => {
const deviceSupport = new DeviceSupport();
deviceSupport.addDetector({name: 'foo', supported: async () => true});
const support = await deviceSupport.detect();
assert.deepEqual(support, { foo: true });
} | GoogleChromeLabs/perception-toolk | src/support/device-support_test.ts | TypeScript |
ArrowFunction |
async () => true | GoogleChromeLabs/perception-toolk | src/support/device-support_test.ts | TypeScript |
ArrowFunction |
async () => {
const deviceSupport = new DeviceSupport();
deviceSupport.addDetector({name: 'foo', supported: async () => true});
deviceSupport.removeDetector('foo');
const support = await deviceSupport.detect();
assert.deepEqual(support, {});
} | GoogleChromeLabs/perception-toolk | src/support/device-support_test.ts | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.